obj? calls sys.__dochook__(obj) obj?? calls sys.__helphook__(obj)
def __dochook__(obj): import pydoc print(pydoc.getdoc(obj)) def __helphook__(obj): help(obj)
That would be great, there are (some) things we should to be careful with.
obj? in a loop is the first I can thing of. I know there are
The second things, it would be nice to allow object to return different mimetype for their help, which I would like to see in the spec of __dochook__ and __helphook__ and not as a convention that depends on the shell you use. One of the things we want to play with in IPython (and in particular notebook), is to have run-able docs (yes with all the security concern that could imply), for which we would need richer data.
I also want to point out that
? also allow to do search for object
name matching regex,
which I like too.
In : ?numpy.str numpy.__str__ numpy.add_docstring numpy.array2string numpy.array_str numpy.datetime_as_string numpy.fromstring numpy.set_string_function numpy.str numpy.str0 numpy.str_ numpy.string_
On Mon, Jul 6, 2015 at 12:09 AM, Nick Coghlan firstname.lastname@example.org wrote:
On 6 July 2015 at 14:23, Wes Turner email@example.com wrote:
It's been the default since 3.4: https://docs.python.org/dev/whatsnew/3.4.html#sys
-- Nick Coghlan | firstname.lastname@example.org | Brisbane, Australia
Python-ideas mailing list Pythonemail@example.com https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/