[New-bugs-announce] [issue17053] pydoc should use inspect.signature instead of inspect.getfullargspec

Ronald Oussoren report at bugs.python.org
Sun Jan 27 14:17:12 CET 2013


New submission from Ronald Oussoren:

pydoc currently uses inspect.getfullargspec to determine the signature of a callable when rendering its documentation. It should use inspect.signature instead because that function can work with callables that aren't python functions or methods.

Changing pydoc to use inspect.signature would make it possible to render more useful documentation for callables implemented in C, when those callables also implement the "__signature__" special method.

----------
components: Library (Lib)
messages: 180768
nosy: ronaldoussoren
priority: low
severity: normal
stage: needs patch
status: open
title: pydoc should use inspect.signature instead of inspect.getfullargspec
type: behavior
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17053>
_______________________________________


More information about the New-bugs-announce mailing list