This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients CuriousLearner, belopolsky, eric.araujo, ncoghlan, serhiy.storchaka
Date 2018-12-29.17:35:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1546104951.31.0.0574381008838.issue35614@roundup.psfhosted.org>
In-reply-to
Content
It fails also for builtin "type".

$ ./python -m pydoc type
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/runpy.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/serhiy/py/cpython/Lib/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/serhiy/py/cpython/Lib/pydoc.py", line 2765, in <module>
    cli()
  File "/home/serhiy/py/cpython/Lib/pydoc.py", line 2727, in cli
    help.help(arg)
  File "/home/serhiy/py/cpython/Lib/pydoc.py", line 1967, in help
    elif request: doc(request, 'Help on %s:', output=self._output)
  File "/home/serhiy/py/cpython/Lib/pydoc.py", line 1690, in doc
    pager(render_doc(thing, title, forceload))
  File "/home/serhiy/py/cpython/Lib/pydoc.py", line 1683, in render_doc
    return title % desc + '\n\n' + renderer.document(object, name)
  File "/home/serhiy/py/cpython/Lib/pydoc.py", line 386, in document
    if inspect.isclass(object): return self.docclass(*args)
  File "/home/serhiy/py/cpython/Lib/pydoc.py", line 1258, in docclass
    (str(cls.__name__) for cls in object.__subclasses__()
TypeError: descriptor '__subclasses__' of 'type' object needs an argument
History
Date User Action Args
2018-12-29 17:35:52serhiy.storchakasetrecipients: + serhiy.storchaka, ncoghlan, belopolsky, eric.araujo, CuriousLearner
2018-12-29 17:35:51serhiy.storchakasetmessageid: <1546104951.31.0.0574381008838.issue35614@roundup.psfhosted.org>
2018-12-29 17:35:51serhiy.storchakalinkissue35614 messages
2018-12-29 17:35:51serhiy.storchakacreate