access private field in python 2.4
Ola Natvig
ola.natvig at infosense.no
Wed Jan 26 11:06:27 EST 2005
ajikoe at gmail.com 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
_<classname>__<attributename>
Withouth the < and > markers, but there are not good practice to access
theese through that name.
--
--------------------------------------
Ola Natvig <ola.natvig at infosense.no>
infoSense AS / development
More information about the Python-list
mailing list