Content-Length: 299537 | pFad | https://github.com/python/cpython/issues/132174

FB Incorrect function name in error message of `_interpreters.run_string` · Issue #132174 · python/cpython · GitHub
Skip to content

Incorrect function name in error message of _interpreters.run_string #132174

@sobolevn

Description

@sobolevn

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

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/132174

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy