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

builtins id dir function not found #234

Open
QGB opened this issue Apr 19, 2024 · 2 comments
Open

builtins id dir function not found #234

QGB opened this issue Apr 19, 2024 · 2 comments

Comments

@QGB
Copy link

QGB commented Apr 19, 2024


>>> import builtins
>>> builtins.id
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: "'module' has no attribute 'id'"
>>> 
>>> builtins.dir
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: "'module' has no attribute 'dir'"

vars

@QGB
Copy link
Author

QGB commented Apr 19, 2024

sys.modules also not support

@QGB
Copy link
Author

QGB commented Apr 19, 2024


>>> exec('print(locals())',{1:2},{})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
    FIXME line of source goes here
KeyError: 'FIXME can only have string keys!: 1'

>>> exec('print(locals())',{'1':2},{'3':3})
{'3': 3}

>>> eval('print(locals())',{'1':2},{'3':3})
{'3': 3}

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