[issue8638] Remove suggestion for name mangling from the tutorial

2010-07-31 Thread Georg Brandl
Georg Brandl added the comment: No objections noted, closing. -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue8638] Remove suggestion for name mangling from the tutorial

2010-05-08 Thread Georg Brandl
Georg Brandl added the comment: The section titled "Private Variables" was updated fairly recently to be more in line with the Python philosophy. In its current form (which I verified to be present at e.g. http://docs.python.org/tutorial/classes#private-variables) I don't think it needs to b

[issue8638] Remove suggestion for name mangling from the tutorial

2010-05-07 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: On Fri, May 7, 2010 at 6:35 PM, Terry J. Reedy wrote: > This is such an advanced and rarely used feature that it hardly seems > appropriate for the tutorial. The problem with just leaving it out is that learners stumbling over them in existing code (likel

[issue8638] Remove suggestion for name mangling from the tutorial

2010-05-07 Thread Clovis Fabricio
Clovis Fabricio added the comment: I help in #python and always suggest people to not use double-underscore name mangling when they mean private. I agree that name mangling shouldn't be on the tutorial at all. It misleads everybody coming from other languages into thinking that it means "priv

[issue8638] Remove suggestion for name mangling from the tutorial

2010-05-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Double underscore name mangling is for avoiding name clashes with base classes, not for 'private attributes'. This is such an advanced and rarely used feature that it hardly seems appropriate for the tutorial. -- nosy: +tjreedy __

[issue8638] Remove suggestion for name mangling from the tutorial

2010-05-07 Thread Skip Montanaro
Skip Montanaro added the comment: Maybe the wording should be changed, but name mangling serves a useful purpose. There are two definitions of "private" which seem to be a bit conflated in this section: * "private" as in, "this name is not part of the public API - use it at your own risk".

[issue8638] Remove suggestion for name mangling from the tutorial

2010-05-06 Thread Dan Buch
Changes by Dan Buch : -- nosy: +meatballhat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8638] Remove suggestion for name mangling from the tutorial

2010-05-06 Thread Éric Araujo
Éric Araujo added the comment: Note that the opinion of people helping in #python does not necessarily (or frequently) match the one of core Python developers. That said, I agree with this particular suggestion. -- nosy: +merwok ___ Python tracker

[issue8638] Remove suggestion for name mangling from the tutorial

2010-05-06 Thread Lucian Ursu
New submission from Lucian Ursu : I suggest that name mangling should not be recommended as a way of having private attributes. Instead, one underscore should be suggested as a signal that the attribute is private. This suggestion comes after discussing with some of the helpers from #python. B