> I understand that this is a very peculiar use of
> classmethods but is this error intentional?
> Or did I completely missed the point somewhere?


A little bit: classmethods are defined in a class context.

def foo(cls):
    print cls

class A:
    foo = classmethod(foo)

The error you observe seems to be a result of your "abuse" of classmethod
outside a class scope.

-- 
Regards,

Diez B. Roggisch
-- 
http://mail.python.org/mailman/listinfo/python-list
  • Re... Diez B. Roggisch
    • ... jfj
    • ... Diez B. Roggisch
    • ... Jong <ruud<dot>de<dot>jong<at>consunet <dot>
      • ... jfj
      • ... Jong <ruud<dot>de<dot>jong<at>consunet <dot>
    • ... Bengt Richter

Reply via email to