accessing class variables of private classes

Mark McEahern marklists at mceahern.com
Sun Jan 16 09:22:37 EST 2005


Uwe Mayer wrote:

>Hi,
>
>I need to access class variables of a class I'd like to make private:
>  
>
Use single underscores instead of double underscores--you won't have to 
workaround the name mangling.  Besides, nothing's really private anyway.

// m



More information about the Python-list mailing list