Skip to content

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

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

Activity

  1. stonebig commented on May 19, 2024

    @stonebig
    Author

    the fingerprint says:
    image

    version of packages used:

              ipython==8.24.0 ,
                   decorator==5.1.1
                   jedi==0.19.1 >=0.16,
                        parso==0.8.4 (<0.9.0,>=0.8.3)
                   matplotlib-inline==0.1.6 ,
                        traitlets==5.14.1
                   prompt-toolkit==3.0.43 <3.1.0,>=3.0.41,
                        wcwidth==0.2.13
                   pygments==2.17.2 >=2.4.0
                   stack-data==0.6.3 ,
                        executing==2.0.1 >=1.2.0
                        asttokens==2.4.1 >=2.1.0,
                             six==1.16.0 >=1.12.0
                        pure-eval==0.2.2
                   traitlets==5.14.1 >=5.13.0
                   colorama==0.4.6
    
  2. graingert commented on May 19, 2024

    @graingert
    Contributor

    This is a typo it should be tempfile_pager

  3. added
    triagedThe issue has been accepted as valid by a triager.
    3.13only security fixes
    3.14bugs and security fixes
    on May 19, 2024
  4. changed the title [-]ipython breaks on Python-3.13.0b1 with a 'tempfilepager' is not defined [/-] [+]ipython breaks on Python-3.13.0b1 when a 'tempfilepager' is not defined [/+] on May 19, 2024
  5. Eclips4 commented on May 19, 2024

    @Eclips4
    Member

    We have already a PR for fix that: #118881

  6. added a commit that references this issue on May 20, 2024
  7. added a commit that references this issue on May 20, 2024
  8. added a commit that references this issue on May 20, 2024
  9. vstinner commented on May 20, 2024

    @vstinner
    Member

    Fixed by 05e1dce

  10. added a commit that references this issue on Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13only 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