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

pprint module not working correctly; produces runtime error #107

Open
acbart opened this issue Nov 11, 2020 · 0 comments
Open

pprint module not working correctly; produces runtime error #107

acbart opened this issue Nov 11, 2020 · 0 comments

Comments

@acbart
Copy link
Contributor

acbart commented Nov 11, 2020

Apparently, if you import a module that contains a field with the same name, the exec implementation we use breaks down. I'm super unclear why and how, but that needs to be fixed.

Easy way to trigger the bad behavior:

import pprint
assert False, pprint.__name__

This will print out answer.py instead of pprint.

It's possible this only happens with the pprint module, I haven't experimented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant