Skip to content
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

objtype.c: module type segfaults on __dict__ access, __call__ not implemented correctly #7

Open
pmp-p opened this issue Aug 2, 2020 · 2 comments
Labels
upstream-bug for bugs that affect micropython/pycopy git

Comments

@pmp-p
Copy link
Owner

pmp-p commented Aug 2, 2020

simple reproducer, seems to affect micropython master too last time i checked
import sys; dir( type(sys) )

call is not implemented for creating empty modules : divergence with Python specs.

import sys; type(sys)('module')

@pmp-p
Copy link
Owner Author

pmp-p commented Aug 4, 2020

@pmp-p
Copy link
Owner Author

pmp-p commented Aug 4, 2020

segault fix : micropython/micropython#6306

maybe fix for module() https://wyz.fr/8B-mien, without that types.ModuleType(modulename) would not work properly

@pmp-p pmp-p added the upstream-bug for bugs that affect micropython/pycopy git label Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream-bug for bugs that affect micropython/pycopy git
Projects
None yet
Development

No branches or pull requests

1 participant