Skip to content

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

Closed
@stonebig

Description

@stonebig

Bug report

Bug description:

on a windows Python-3.13.0b1 non-english

test:

Python 3.13.0b1 (tags/v3.13.0b1:2268289, May  8 2024, 12:20:07) [MSC v.1938 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.24.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: help(len)

result:

Unexpected exception formatting exception. Falling back to standard exception
Traceback (most recent call last):
  File "......\python-3.13.0b1.amd64\Lib\site-packages\IPython\core\interactiveshell.py", line 3577, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<ipython-input-1-1dda769017ba>", line 1, in <module>
    help(len)
    ~~~~^^^^^
  File "<frozen _sitebuiltins>", line 103, in __call__
  File "......\python-3.13.0b1.amd64\Lib\pydoc.py", line 1983, in __call__
    self.help(request)
    ~~~~~~~~~^^^^^^^^^
  File "......\python-3.13.0b1.amd64\Lib\pydoc.py", line 2044, in help
    else: doc(request, 'Help on %s:', output=self._output, is_cli=is_cli)
          ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "......\python-3.13.0b1.amd64\Lib\pydoc.py", line 1757, in doc
    pager(render_doc(thing, title, forceload), f'Help on {what!s}')
    ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "......\python-3.13.0b1.amd64\Lib\pydoc.py", line 1656, in pager
    pager(text, title)
    ~~~~~^^^^^^^^^^^^^
  File "......\python-3.13.0b1.amd64\Lib\_pyrepl\pager.py", line 38, in <lambda>
    return lambda text, title='': tempfilepager(plain(text), 'more <')
                                  ^^^^^^^^^^^^^
NameError: name 'tempfilepager' is not defined. Did you mean: '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