These are chat archives for pybee/general
During installing cricket, I got a "ImportError: No module named '_tkinter', please install the python3-tk package" but that was easily solved by sudo apt-get install python3-tk . I could add that to the Troubleshooting part of the documentation, if that would make sense.
bataviainternals for faster getting started?
test_mktime_dsttest, and doesn’t show the
module$importis the method that is invoked when a class representing a Python module is imported. It’s managed separately to the Java
staticblock so that we can retain control over the order of execution, and separate the execution of that block from the Java import process.
test_abs.py, and so on
not_implementedarray inside the test cases to tell the test suite that those tests are supposed to pass
__abs__()method is being called by the
conjugate()since it’s a method only for the complex type, you’ll probably want to put the test in those for the type. so
+, and also a space after the cast parentheses
from android.view import View class ButtonClick(implements=View.OnClickListener): def onClick(self, view): print('view', view) # ... button.setOnClickListener(ButtonClick())
RuntimeError: Failed resolution of: Lorg/eliasdorneles/tictactoe/app/ButtonClick;
implements=class directly - VOC currently uses the string directly, rather than loading the symbol.
OnClickListeneris an inner class (hence the subscript notation); and even though you’ve imported
android.view, VOC doesn’t know about that namespace when it’s resolving
E/AndroidRuntime( 4944): AttributeError: 'ButtonClick' object has no attribute '__float__' E/AndroidRuntime( 4944): at android.view.View.performClick(View.java:4780)
onClickmethod in the handler - have you annotated it?
class ButtonClick(implements=android.view.View[OnClickListener]): def onClick(self, view): print('view', view)
onClick(self, view: android.view.View): -> void
__float__not existing, though...
asynciofor running tests asynchronously?
asyncioisn’t magic fairy dust that makes things faster - you have to have a scenario that is IO bound and can be decomposed into non-blocking operations.