Немагический метод метакласса
>
>
>
C.mm=lambda self: "I am a regular method of %s" % self.__class__ >
>
>
print C.mm() [...] TypeError: unbound method <lambda>
() must be called with C instance as first argument (got nothing instead)
>
>
>
C.mm=lambda self: "I am a regular method of %s" % self.__class__ >
>
>
print C.mm() [...] TypeError: unbound method <lambda>
() must be called with C instance as first argument (got nothing instead)