-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assert keyword do not work #1193
Comments
Because p4a ship compiled version (optimized?) of Python bytecode (-OO). This removes the assert and code behind Now that you mention it, i guess it would be nice to do that only for the actual release, and not debug mode. |
That would make sense to me. I'm not sure the -OO affects the size much anyway. |
I made a PR at #1221 that should fix this, but haven't tested it yet other than to make sure the compiling works. |
Added --no-optimize-python option to remove -OO in sdl2 bootstrap, fixes #1193
I saw this issue first and decided to check if this problem occurs in other
kivypython implementations on Android. Assert did not work for me in apps builded with various versions of p4a (from old toolchain to 0.6.0)Syntax
assert False
is ignored in any kivy app on Android (not sure for python3 builds though)I assume the the problem is somewhere in the python build process
The text was updated successfully, but these errors were encountered: