Noob Python Question

crackp0t

010001100100011101010100
Jun 24, 2009
3,636
70
0
I'm learning Python and it seems that private and protected classes and variables aren't really used. It seems that private variables a prefixes with __ and protected are prefixed with _. It is then left up to the programmer to respect the wishes of the original designer of the class.

Is the above observation correct? If it is how do IDEs handle auto-complete? Do they just show everything? I don't use auto-complete for anything so it's not a big deal I just found this concept interesting. It would also seem to make the code harder to understand for someone coming from another language that makes heavy use of protect/private keywords to the public interface obvious. What are your thoughts on that?

Sorry, if this is a random noob question. I am a Python noob :)


Edit:

Thanks to dchuck for the nettutsplus link in another thread that started me down this road. I thought I'd hate the whitespace issues, but after setting up vim properly they don't seem to be an issue.