On Oct 10, 2011 7:48 PM, "Stayvoid" firstname.lastname@example.org wrote:
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*)
 D.has_key()  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. _______________________________________________ Python-ideas mailing list Pythonemail@example.com http://mail.python.org/mailman/listinfo/python-ideas
I think a lot of things can be improved in help() but I wouldn't change the python language for that.
Once in help(), that kind of builtin/types/modules/methods/docs searching should be more easily accessible. Right now you have to specifically know what you're looking for to find most things.