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 thp
Recipients thp
Date 2011-08-01.12:22:35
SpamBayes Score 5.1722985e-08
Marked as misclassified No
Message-id <1312201356.72.0.545473144997.issue12674@psf.upfronthosting.co.za>
In-reply-to
Content
If I want to get help on a method on a built-in class (e.g. list or str) I can use the help function in the interactive shell:

>>> help(str.split)
>>> help(list.append)

However, when I try to do the same with the command-line utility "pydoc" it does not work:

$ pydoc str.split

What does work with the pydoc command is that I use the following command and then search for the function in the resulting output:

$ pydoc str # after that, manually search for "split"

I've created a patch against Python 2.6's "pydoc.py" that tries to iteratively look up methods in builtins. This keeps the previous behavior as-is, but will give positive results in the cases listed above.
History
Date User Action Args
2011-08-01 12:22:36thpsetrecipients: + thp
2011-08-01 12:22:36thpsetmessageid: <1312201356.72.0.545473144997.issue12674@psf.upfronthosting.co.za>
2011-08-01 12:22:36thplinkissue12674 messages
2011-08-01 12:22:35thpcreate