Re: access private field in python 2.4

2005-01-26 Thread [EMAIL PROTECTED]
thanks Steve pujo -- http://mail.python.org/mailman/listinfo/python-list

Re: access private field in python 2.4

2005-01-26 Thread Steven Bethard
[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

Re: access private field in python 2.4

2005-01-26 Thread [EMAIL PROTECTED]
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

Re: access private field in python 2.4

2005-01-26 Thread Ola Natvig
[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

access private field in python 2.4

2005-01-26 Thread [EMAIL PROTECTED]
Hello, I'm new to python, How can I access private field in python. thanks -- http://mail.python.org/mailman/listinfo/python-list