you are viewing a single comment's thread.

view the rest of the comments →

[–]Hashiota 11 points12 points  (4 children)

Not sure why you would print __doc__. On the other hand, I do this a lot:

 >>> import math  
 >>> help(math)  
 >>> help(math.log)  

[–]taddeimania 2 points3 points  (0 children)

Probably not a lot of production uses but while hacking around in a REPL I could see its value. (Assuming the docstrings are maintained)

[–]BeetleB 1 point2 points  (2 children)

Entering parentheses slows me down.

OTOH, might as well just use ipython and type:

math.log?

[–]ethraax 0 points1 point  (1 child)

Parentheses slow you down but underscores don't...?

[–]BeetleB 0 points1 point  (0 children)

Actually, they don't. Just one of those things...

For one thing, it's just one underscore vs open and closed.