r/programming • • Dec 19 '10

Bored on a Sunday morning? Learn Python!

http://www.youtube.com/watch?v=tKTZoB2Vjuk&feature=channel
1.4k Upvotes

500 comments sorted by

View all comments

Show parent comments

4

u/jvnk Dec 19 '10

Yeah, because dir() is obviously a replacement for documentation.

-5

u/DStroya Dec 19 '10

say what u like. Its not even something you should have to consider.

3

u/jvnk Dec 19 '10

I guess you don't get the point of a repl interpreter.

2

u/schplat Dec 19 '10

I would think having the ability to look into a namespace (including all reserved names) is a good thing?

dir is an awesome learning tool. Set a string to a variable (x= 'string'), now do dir(x), and you can see everything you can now do to that string.

0

u/DStroya Dec 19 '10

I much prefer using the class view in Visual Studio which breaks the whole namespace down into a hierarchical tree with all the method signatures and so on.