Private attributes / Methods in Python
Henry
henry at nospam.com
Mon Jan 14 18:09:25 EST 2002
HIi
Could someone give an example of private variables? I have read the
"Private Variable" section in the tutorial that you can download at the
Python site.
But I don't fully under the "class VirtualAttribute" example, because I can
still do
a = VirtualAttribute()
a.__setattr__("name","theValue")
So, if anyone has another example (other than the VirtualAttribute example)
of private attributes / method in Python, that would be really good.
Thanks
More information about the Python-list
mailing list