Newsgroups: comp.lang.python
From: Tony Meyer <t-me...@ihug.co.nz>
Date: Wed, 28 Sep 2005 23:15:05 +1200
Local: Wed 28 Sep 2005 12:15
Subject: Re: Will python never intend to support private, protected and public?
On 28/09/2005, at 11:05 PM, Simon Brunning wrote:
> On 9/28/05, could ildg <could....@gmail.com> wrote: I'm not sure why I haven't seen this mentioned yet, but a leading >> Python is wonderful except that it has no real private and protected > My convention, attributes with names prefixed with a single underscore double-underscore does really make a member private: >>> class f(object): As you see, it's there in the dict, but it's obfuscated - but that's Just think of a single leading underscore as protected, and double =Tony.Meyer 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.
| ||||||||||||||