bpo-29940: Add follow_wrapped option to help() by eamanu · Pull Request #22390 · python/cpython (original) (raw)
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation2 Commits9 Checks0 Files changed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
When print the docstring using help builtin for an wrapper function
it doesn't correspond to the function wrapped. For avoid this
this PR add the follow_wrapped option to help() function.
This is the continuation of the wrong #12915
https://bugs.python.org/issue29940
When print the docstring using help builtin for an wrapper function it doesn't correspond to the function wrapped. For avoid this this PR add the follow_wrapped to help().
Co-authored-by: Tal Einat taleinat+github@gmail.com
…c has doc. Otherwise show parents doc
It seems to me that the implementation approach here is strange, surprising, and could have unexpected consequences.
Why did you choose this rather than actually checking for wrapped, and following it (recursively) if found?