[Poll] Private variables

Alexandre Fayolle alf at orion.logilab.fr
Thu Sep 13 02:53:49 EDT 2001


On Wed, 12 Sep 2001 16:13:42 -0400, Tim Peters <tim.one at home.com> wrote:
>[Alexandre Fayolle]
>> It is possible in python to get private class members by using names
>> beginning with 2 underscores, and finished by at least 1 underscore.
>
>You don't need an underscore at the end.  A name in a class is private if

Wooops. I, of course, meant 'at most 1 underscore'. 

Alexandre Fayolle
-- 
LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
Narval, the first software agent available as free software (GPL).



More information about the Python-list mailing list