-
-
Notifications
You must be signed in to change notification settings - Fork 34.1k
Closed
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-importlibtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
The interpreter will raise a SystemError when __lazy_import__ is called with a second positional argument:
>>> __lazy_import__('', 1)
Traceback (most recent call last):
File "<python-input-82>", line 1, in <module>
__lazy_import__('', 1)
~~~~~~~~~~~~~~~^^^^^^^
SystemError: Objects/dictobject.c:2499: bad argument to internal functionFound using fusil by @vstinner.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-importlibtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error