We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following 'test.py' produces a crash with the unix port. In this example, we clear the dic when defining the dic, then micropython crashes.
test.py
class S(str): def __eq__(self, other): d.clear() def __hash__(self): return hash('test') d = {S(): 'value'} 'test' in d
Error message:
Floating point exception (core dumped)
The expected output: work well (behavior on CPython 3.10.8)
how to replicate it:
->> 'micropython/ports/unix/build-standard/micropython' test.py
Environment compiler versions: MicroPython v1.19.1-724-gfb7d21153 on 2023-03-07; linux [GCC 7.5.0] version operating system: Ubuntu 18.04.6 LTS
The text was updated successfully, but these errors were encountered:
See #9997 also MP differences, in particular:
Subclassing of builtin types is partially implemented, but there may be various differences and compatibility issues with CPython.
Sorry, something went wrong.
No branches or pull requests
The following 'test.py' produces a crash with the unix port. In this example, we clear the dic when defining the dic, then micropython crashes.
test.py
Error message:
The expected output: work well (behavior on CPython 3.10.8)
how to replicate it:
Environment
compiler versions: MicroPython v1.19.1-724-gfb7d21153 on 2023-03-07; linux [GCC 7.5.0] version
operating system: Ubuntu 18.04.6 LTS
The text was updated successfully, but these errors were encountered: