classification
Title: Add follow_wrapped=True option to help()
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: eamanu, rhettinger, samwyse
Priority: normal Keywords: patch

Created on 2017-03-29 15:41 by samwyse, last changed 2019-04-22 20:25 by eamanu.

Pull Requests
URL Status Linked Edit
PR 12915 open eamanu, 2019-04-22 20:25
Messages (1)
msg290782 - (view) Author: Samwyse (samwyse) Date: 2017-03-29 15:41
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.
History
Date User Action Args
2019-04-22 20:25:09eamanusetkeywords: + patch
stage: patch review
pull_requests: + pull_request12841
2019-04-22 17:57:25eamanusetnosy: + eamanu
2019-04-22 07:25:49xtreaksetnosy: + rhettinger

versions: + Python 3.8, - Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7
2017-03-29 15:41:05samwysecreate