Re: Access from a class attribute

2009-06-04 Thread Bruno Desthuilliers
Kless a écrit : Why can not to access from a class attribute to a function of that class? - class Foo(object): attr = __class__.__name__ attr = self.__class__.__name__ - "class" is an executable statement that instanciate a new class object a

Access from a class attribute

2009-06-04 Thread Kless
Why can not to access from a class attribute to a function of that class? - class Foo(object): attr = __class__.__name__ attr = self.__class__.__name__ - -- http://mail.python.org/mailman/listinfo/python-list

Re: Access from a class attribute

2009-06-04 Thread Ben Finney
Kless writes: > Why can not to access from a class attribute to a function of that > class? > > - > class Foo(object): >attr = __class__.__name__ >attr = self.__class__.__name__ > - The ‘self’ name is not magical. If you want it