[docs] [issue12086] Tutorial doesn't discourage name mangling

Radomir Dopieralski report at bugs.python.org
Tue May 17 11:16:50 CEST 2011

Radomir Dopieralski <python-bugs at sheep.art.pl> added the comment:

I am reporting this specifically because I just had two independent cases of people who submitted code that had almost all methods name-mangled (within 2 weeks), and who then pointed to that section of the tutorial as justification. I have a hard time convincing them that it is a bad idea, as I have to work against the official documentation here. 

I agree that the language and library references should explain the mechanics behind the language in a neutral and empowering way. But I think that tutorial shouldn't tell people to write horrible code.

Perhaps it would suffice if the tutorial didn't call this "private methods"? A more descriptive and accurate section name, such as "name mangling" or "avoiding name clashes" could help a lot.


Python tracker <report at bugs.python.org>

More information about the docs mailing list