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 veky
Recipients gvanrossum, levkivskyi, mbussonn, ncoghlan, serhiy.storchaka, veky, xtreak, yselivanov
Date 2020-05-11.05:00:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589173231.95.0.396726254373.issue40257@roundup.psfhosted.org>
In-reply-to
Content
Of course, I thought that

2. inspect.getdoc() returns the object's own docstring.

means it returns the object's own docstring _if it has one_. If it doesn't, then it should still return the docstring of its class, of course!

I have no problem with the fact that help(1) gives the same help as help(int). Of course, same as with the above (subclasses), we might want to emphasize the fact that the help is for the class and not for the object itself, but just returning nothing is in no way an improvement.

Guido, load is probably from Pandas, df is a relatively standard abbreviation for "dataframe" (an instance of a class DataFrame, with many various methods), and obj?? in Jupyter opens the help for obj in a subwindow, enabling you to browse it and close when you're done with it.
History
Date User Action Args
2020-05-11 05:00:32vekysetrecipients: + veky, gvanrossum, ncoghlan, serhiy.storchaka, yselivanov, levkivskyi, mbussonn, xtreak
2020-05-11 05:00:31vekysetmessageid: <1589173231.95.0.396726254373.issue40257@roundup.psfhosted.org>
2020-05-11 05:00:31vekylinkissue40257 messages
2020-05-11 05:00:31vekycreate