Robert Roy rjroy at takingcontrol.com
Thu Mar 23 22:44:06 CET 2000

On Thu, 23 Mar 2000 16:24:14 +0300, "Oleg Orlov" <orlov at diasoft.ru>

>I know ugly solution:
>replace self.__values with self.__dict__['__values'].
>But I think that Python must not translate '__values' into
>'_AObject__values' inside objects method. Is it bug?
>Oleg Orlov
>From tutorial 9.6

There is limited support for class-private identifiers. Any identifier
of the form __spam (at least two leading underscores, at most one
trailing underscore) is now textually replaced with _classname__spam,
where classname is the current class name with leading underscore(s)

More information about the Python-list mailing list