This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lukasz.langa
Recipients docs@python, ezio.melotti, georg.brandl, lukasz.langa, rhettinger, sheep, tim.golden
Date 2011-05-16.10:17:56
SpamBayes Score 3.0906475e-07
Marked as misclassified No
Message-id <1305541077.16.0.720223678781.issue12086@psf.upfronthosting.co.za>
In-reply-to
Content
I'd like to see that section gone altogether. The tutorial is designed to be the first point of contact with the language. In that context name mangling is an obscure detail with an unlikely use case.

If anything, the tutorial should simply state that private variables are by convention prepended with a single underscore. Maybe there's place for a separate short article which would nicely explain the philosophy behind the lack of an enforcing `private` modifier. The "we're all consenting adults here" stuff.

Agreed with Ezio that "private" is in itself a poor name for what underscore (regardless whether a single one or two) really means.
History
Date User Action Args
2011-05-16 10:17:57lukasz.langasetrecipients: + lukasz.langa, georg.brandl, rhettinger, tim.golden, ezio.melotti, docs@python, sheep
2011-05-16 10:17:57lukasz.langasetmessageid: <1305541077.16.0.720223678781.issue12086@psf.upfronthosting.co.za>
2011-05-16 10:17:56lukasz.langalinkissue12086 messages
2011-05-16 10:17:56lukasz.langacreate