Message368618
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 |
|
Date |
User |
Action |
Args |
2020-05-11 08:16:37 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, ncoghlan, yselivanov, veky, levkivskyi, mbussonn, xtreak |
2020-05-11 08:16:37 | serhiy.storchaka | set | messageid: <1589184997.95.0.742804130688.issue40257@roundup.psfhosted.org> |
2020-05-11 08:16:37 | serhiy.storchaka | link | issue40257 messages |
2020-05-11 08:16:37 | serhiy.storchaka | create | |
|