(no subject)
Gregoire Welraeds
greg at perceval.be
Mon Feb 28 08:57:05 EST 2000
This question is related to OOP approach.
Why do I have to :
def __init__(self, name):
self.__name = name
def getname(self):
return self.__name
and
x= MyObject.getname()
instead of
def __init__(self, name):
name= name
and then
x= MyObject.name
--
Life is not fair
But the root password helps
--
Gregoire Welraeds
greg at perceval.be
Perceval Development team
-------------------------------------------------------------------------------
Perceval Technologies sa/nv Tel: +32-2-6409194
Rue Tenbosch, 9 Fax: +32-2-6403154
B-1000 Brussels general information: info at perceval.net
BELGIUM technical information: helpdesk at perceval.net
URL: http://www.perceval.be/
-------------------------------------------------------------------------------
More information about the Python-list
mailing list