access private field in python 2.4

Ola Natvig ola.natvig at
Wed Jan 26 11:06:27 EST 2005

ajikoe at wrote:
> Hello,
> I'm new to python,
> How can I access private field in python.
> thanks

In python there realy are not private fields. There are those fields 
that you start with a double underline (__) theese are translated to


Withouth the < and > markers, but there are not good practice to access 
theese through that name.

  Ola Natvig <ola.natvig at>
  infoSense AS / development

More information about the Python-list mailing list