[New-bugs-announce] [issue29940] Add follow_wrapped=True option to help()

Samwyse report at bugs.python.org
Wed Mar 29 11:41:05 EDT 2017


New submission from Samwyse:

The help(obj) function uses the type of obj to create its result.  This is less than helpful when requesting help on a wrapped object.  Since 3.5, inspect.signature() and inspect.from_callable() have a follow_wrapped option to get around similar issues.  Adding the option to help() would prevent surprising behavior while still allowing current behavior to be used when needed.  See http://stackoverflow.com/a/17705456/603136 for more.

----------
components: Library (Lib)
messages: 290782
nosy: samwyse
priority: normal
severity: normal
status: open
title: Add follow_wrapped=True option to help()
type: enhancement
versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7

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


More information about the New-bugs-announce mailing list