[issue19980] Improve help('non-topic') response

Mark Lawrence report at bugs.python.org
Sun May 18 00:52:13 CEST 2014


Mark Lawrence added the comment:

I propose the following.  help('') returns help on strings in the same way that help([]) and help({}) returns help on lists and dicts respectively, further help(''.method) returns help on the string method or an attribute error, so this appears to me consistent.  help('doh') returns enhanced output along the lines Terry suggested in msg206157.  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.  Thoughts?

If we can come to an agreement I'll try and work up a patch.

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

I've also just signed the contributor's agreement.

----------
nosy: +BreamoreBoy

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19980>
_______________________________________


More information about the Python-bugs-list mailing list