Author serhiy.storchaka
Recipients gvanrossum, levkivskyi, mbussonn, ncoghlan, serhiy.storchaka, veky, xtreak, yselivanov
Date 2020-05-11.08:16:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589184997.95.0.742804130688.issue40257@roundup.psfhosted.org>
In-reply-to
Content
help(1) as well as help(int) output the help for int. The only difference is that the former has the first line "Help on int object:", and the latter -- "Help on class int in module builtins:".

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.

By the way, I just tried IPython 5.5.0 with Python 3.6.9, and it does not output the docstring either:

In [1]: a = 1

In [2]: a??
Type:        int
String form: 1
History
Date User Action Args
2020-05-11 08:16:37serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, ncoghlan, yselivanov, veky, levkivskyi, mbussonn, xtreak
2020-05-11 08:16:37serhiy.storchakasetmessageid: <1589184997.95.0.742804130688.issue40257@roundup.psfhosted.org>
2020-05-11 08:16:37serhiy.storchakalinkissue40257 messages
2020-05-11 08:16:37serhiy.storchakacreate