Skip to content

builtin help() with pager crashes on py313 #1029

@mxr

Description

@mxr

See example below:

My environment:

$ python --version
Python 3.13.1
$ pip freeze | rg bpython
bpython @ git+https://github.com/bpython/bpython@4605fabe156a9bf1abfee5945514cf81c1828df2

In bpython:

>>> help(int)
Traceback (most recent call last):
  File "<input>", line 1, in <module>
    help(int)
    ~~~~^^^^^
  File "/Users/mxr/tmp/venv3.13/lib/python3.13/site-packages/bpython/curtsiesfrontend/_internal.py", line 63, in __call__
    return super().__call__(*args, **kwargs)
           ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/Users/mxr/tmp/venv3.13/lib/python3.13/site-packages/bpython/_internal.py", line 25, in __call__
    self.helper(*args, **kwargs)
    ~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.13/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/pydoc.py", line 1992, in __call__
    self.help(request)
    ~~~~~~~~~^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.13/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/pydoc.py", line 2053, in help
    else: doc(request, 'Help on %s:', output=self._output, is_cli=is_cli)
          ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.13/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/pydoc.py", line 1764, in doc
    pager(render_doc(thing, title, forceload), f'Help on {what!s}')
    ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: _Helper.pager() takes 2 positional arguments but 3 were given

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy