-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtopic-subinterpreterstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
While working on #132173 I've noticed that this error message mentions the wrong function:
>>> import _interpreters
>>> _interpreters.create()
1
>>> _interpreters.run_string(1, '')
Traceback (most recent call last):
File "<python-input-2>", line 1, in <module>
_interpreters.run_string(1, '')
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
ValueError: _interpreters.exec(): bad script text (too short)
It should be:
>>> import _interpreters
>>> _interpreters.create()
1
>>> _interpreters.run_string(1, '')
Traceback (most recent call last):
File "<python-input-4>", line 1, in <module>
_interpreters.run_string(1, '')
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
ValueError: _interpreters.run_string(): bad script text (too short)
I have a PR ready.
Linked PRs
Metadata
Metadata
Assignees
Labels
extension-modulesC modules in the Modules dirC modules in the Modules dirtopic-subinterpreterstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Done