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 mbussonn
Recipients gvanrossum, levkivskyi, mbussonn, ncoghlan, serhiy.storchaka, veky, xtreak, yselivanov
Date 2020-05-11.16:24:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Can you all please decide which issue to use?

We can stay here, I opened the other issue before figuring out this was the cause.

> If IPython wants to output the help on the instance, it should change the implementation of `?` and `??`. It would be better if it correctly attribute the source of the docstring: the object itself, its class or its superclass. It was difficult to distinguish these cases before, now it is easier.

Sure I can do that, but this issue feel like a important semantic change of `inspect.getdoc()`, it may be documented but there is no warning or deprecation of behavior. It is also likely to affect untested code (documentation generation).

If you decide that this change of behavior is the one you want I'll be happy to support you – I just want to make sure the impact on the rest of the ecosystem. IPython/Jupyter is likely not the only one to rely on inspect.getdoc behavior, I'm thinking pycharm, spyder, sphinx will likely be impacted. I can see `inspect.getdoc()` in the source of even scipy/numpy and rarely in tests.

I would prefer new functions with clearer behavior and for example returning a sequence of tuple (docs, where it comes from) potentially deprecating inspect.getdocs() than a change of behavior that remove data where their used to be some

>  I just tried IPython 5.5.0

(You may want to update to 5.10, and do you have reason to still be on 5 and not 7 ?)
Date User Action Args
2020-05-11 16:24:39mbussonnsetrecipients: + mbussonn, gvanrossum, ncoghlan, serhiy.storchaka, yselivanov, veky, levkivskyi, xtreak
2020-05-11 16:24:39mbussonnsetmessageid: <>
2020-05-11 16:24:39mbussonnlinkissue40257 messages
2020-05-11 16:24:39mbussonncreate