S
Steven D'Aprano
There's some subtle behaviour going on here that I don't really follow.
Class methods apparently aren't classmethods.
.... def method(self, *args):
.... return self, args
.... @classmethod
.... def cmethod(cls, *args):
.... return cls, args
....<type 'instancemethod'>
Can anyone explain why class methods bound to a class are instancemethods
rather than classmethods?
Class methods apparently aren't classmethods.
.... def method(self, *args):
.... return self, args
.... @classmethod
.... def cmethod(cls, *args):
.... return cls, args
....<type 'instancemethod'>
Can anyone explain why class methods bound to a class are instancemethods
rather than classmethods?