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
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
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