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 jesstess
Recipients BreamoreBoy, Jessica.McKellar, docs@python, elias, jesstess, terry.reedy
Date 2014-05-26.17:45:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401126352.26.0.0358724381507.issue19980@psf.upfronthosting.co.za>
In-reply-to
Content
@BreamoreBoy, thanks for following up on this!


> I propose the following.  help('') returns help on strings in the same way that help([]) and help({}) returns help on lists and dicts respectively,

Sounds good.

> further help(''.method) returns help on the string method or an attribute error, so this appears to me consistent.

This already happens (which I think you are saying, but it's a bit confusing in reading your message which functionality you are proposing to add and which functionality you are restating that already exists).

> help('doh') returns enhanced output along the lines Terry suggested in msg206157.

Sounds good.

> help('module') gives the path to the module as well as the help output, if any, as I think this could be useful in cases where you're looking for problems and have a stdlib module masked by a file of your own.

I think you are stating the current functionality?

> Note that I've tried looking at the test code and it didn't make much sense to me, pointers welcome.

Do you have specific questions?

Terry suggests that help() tests for functionality using pydoc live in test_pydoc.py, and that help() tests for functionality not using pydoc live in test_site.py.
History
Date User Action Args
2014-05-26 17:45:52jesstesssetrecipients: + jesstess, terry.reedy, docs@python, BreamoreBoy, elias, Jessica.McKellar
2014-05-26 17:45:52jesstesssetmessageid: <1401126352.26.0.0358724381507.issue19980@psf.upfronthosting.co.za>
2014-05-26 17:45:52jesstesslinkissue19980 messages
2014-05-26 17:45:51jesstesscreate