static python classes ?

Tom Gur gur.tom at gmail.com
Tue Jun 19 08:56:43 EDT 2007


> Look for @staticmethod inhttp://docs.python.org/lib/built-in-funcs.html
>
> Example:
> class C:
>     @staticmethod
>     def f(arg1, arg2, ...): ...


Oops, sorry for the confusion - I've actually meant a static method,
and Gerald's answer works fine.
Thanks alot




More information about the Python-list mailing list