Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
If__builtins__ is not a dict, you can get a SystemError:
>>>import types>>>exec("import builtins; builtins.print(3)", {"__builtins__": types.MappingProxyType({})})Traceback (most recent call last): File "<stdin>", line 1, in <module> exec("import builtins; builtins.print(3)", {"__builtins__": types.MappingProxyType({})}) File "<string>", line 1, in <module>SystemError: Objects/dictobject.c:1761: bad argument to internal function
Originally found this while playing withhttps://oskaerik.github.io/theevalgame/
CPython versions tested on:
3.11, CPython main branch
Operating systems tested on:
macOS