thanks Steve
pujo
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
Hello, if we want to access the private member of object we use the
classname, it doesn't make sense. For example:
I have class A:
class A:
def __init__(self, i):
self.__i = i;
pass
__i = 0
a = A(22);
b = A(33);
How can I get field i in object a and how can I get field i i
Hello, if we want to access the private member of object we use the
classname, it doesn't make sense. For example:
I have class A:
class A:
def __init__(self, i):
self.__i = i;
pass
__i = 0
a = A(22);
b = A(33);
How can I get field i in object a and how can I get field i in object
b?
Beside I
[EMAIL PROTECTED] 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 p
Hello,
I'm new to python,
How can I access private field in python.
thanks
--
http://mail.python.org/mailman/listinfo/python-list