Python design philosophy

Grant Edwards ge at nowhere.none
Wed Jun 28 15:13:39 EDT 2000


In article <aJr65.11287$227.233074 at nnrp1.uunet.ca>, Warren Postma wrote:

>> I am *brand* new to python (as of Sunday), and I just got to
>> the section in the tutorial about classes.  I was wondering why
>> there really isn't such an idea as a "private" member of
>> classes?

[...]

>Now, sometimes an idiom replaces a keyword.  For example, if
>you want something to be apparently private, one idiom is to
>append underscores to
 ^^^^^^
prepend?

>the name, which in programmer-idiomspeak means "don't mess with
>this if you know what's good for you". 

-- 
Grant Edwards                   grante             Yow!  .. bleakness....
                                  at               desolation.... plastic
                               visi.com            forks...



More information about the Python-list mailing list