static attribute
Roman Suzi
rnd at onego.ru
Sat May 12 11:14:16 EDT 2001
On 12 May 2001, Uwe Schmitt wrote:
>hi,
>
>i tried to use a static attribute _allNames as follows:
>
>
>class Name:
>
> _allNames={}
>
> def __init__(self,name):
> self.name=name
> _allNames[name]=self
>
>
>X=Name("Xclass")
>
>but i get NameError.... whats wrong ?
self._allNames
>
>yours, uwe
>
>
Sincerely yours, Roman Suzi
--
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Saturday, May 12, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "Nobody can be just like me. Even I have trouble." _/
More information about the Python-list
mailing list