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
and bind it t
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 bound to something, you
ha