Newsgroups: comp.lang.python
From: "Fredrik Lundh" <fred...@pythonware.com>
Date: Wed, 28 Sep 2005 17:45:37 +0200
Local: Wed 28 Sep 2005 16:45
Subject: Re: Will python never intend to support private, protected and public?
Tony Meyer wrote: the sentence you're quoting the first part of continues: >> I thought about it, but I didn't mention it in the end because this >> feature ("name mangling") isn't intended as a mechanism for making >> things private - it's intended to prevent namespace clashes when doing >> multiple inheritance. > That's not what the documentation says: > """ > There is limited support for class-private identifiers. without having to worry about instance variables defined by derived and the paragraph later says: Note that the mangling rules are designed mostly to avoid accidents and both sentences are from the *tutorial*, which doesn't exactly http://groups.google.com/group/comp.lang.python/msg/e79f875059d9a2ba "In my version, private data has it's own scope, so that name clashes see the rest of that thread for more about the history of __. </F> You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||