Wednesday, April 15, 2009

help() is awesome

It is awesome that I can look at the documentation for a module in the shell anywhere and at anytime.


help(awesome)


It is even more awesome that it uses 'less' to display the help.

It is even more awesome that I can call in a script and it still works the same way. Being able to introspect during execution using help is just great.



x = mysteryFunction()
help(x)

No comments:

Post a Comment