[Python-ideas] Help mode improvement.

Stayvoid stayvoid at gmail.com
Tue Oct 11 01:48:15 CEST 2011


Hi there!

I want to make an improvement connected with the interactive help mode.

Example:
You want to check some keys in the dictionary, but you can't remember
the syntax of the command.

If you type something like this: help(key), the interpreter will
output an error. Because help(key) is just a plain
expression, and it tries to evaluate key first before even calling
help(). Maybe help(*key*) could make it work?

In my opinion it will be very helpful for newcomers if the interpreter
could search for similar commands and output them all.

Code listing:
help(*key*)
-
[1] D.has_key()
[2] D.keys()
…

To learn more you should type the number.

I think the game is worth the candle if the suggested feature could
work as fast as the current helper.

Kind regards.



More information about the Python-ideas mailing list