Skip to content

ipython breaks on Python-3.13.0b1 when a 'tempfilepager' is not defined #119185

@stonebig

Description

@stonebig

Bug report

Bug description:

on a windows Python-3.13.0b1 non-english

test:

Python3.13.0b1 (tags/v3.13.0b1:2268289, May82024, 12:20:07) [MSCv.193864bit (AMD64)] Type'copyright', 'credits'or'license'formoreinformationIPython8.24.0--AnenhancedInteractivePython. Type'?'forhelp. In [1]: help(len)

result:

Unexpectedexceptionformattingexception. FallingbacktostandardexceptionTraceback (mostrecentcalllast): File"......\python-3.13.0b1.amd64\Lib\site-packages\IPython\core\interactiveshell.py", line3577, inrun_codeexec(code_obj, self.user_global_ns, self.user_ns) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"<ipython-input-1-1dda769017ba>", line1, in<module>help(len) ~~~~^^^^^File"<frozen _sitebuiltins>", line103, in__call__File"......\python-3.13.0b1.amd64\Lib\pydoc.py", line1983, in__call__self.help(request) ~~~~~~~~~^^^^^^^^^File"......\python-3.13.0b1.amd64\Lib\pydoc.py", line2044, inhelpelse: doc(request, 'Help on %s:', output=self._output, is_cli=is_cli) ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"......\python-3.13.0b1.amd64\Lib\pydoc.py", line1757, indocpager(render_doc(thing, title, forceload), f'Help on {what!s}') ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"......\python-3.13.0b1.amd64\Lib\pydoc.py", line1656, inpagerpager(text, title) ~~~~~^^^^^^^^^^^^^File"......\python-3.13.0b1.amd64\Lib\_pyrepl\pager.py", line38, in<lambda>returnlambdatext, title='': tempfilepager(plain(text), 'more <') ^^^^^^^^^^^^^NameError: name'tempfilepager'isnotdefined. Didyoumean: 'tempfile_pager'?

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixeseasytriagedThe issue has been accepted as valid by a triager.type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions