static methods
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Sat Mar 24 09:38:24 EST 2001
Fri, 23 Mar 2001 14:27:42 -0800, Paul Prescod <paulp at ActiveState.com> pisze:
> Probably because they are simply not neccessary.
>
> def _static():
> XXX.foo=bar
> return XXX.foo
>
> class Class:
> staticmethod = _static
> ...
It doesn't work. Try to call it.
The fact that you are not the first person who thinks it works
suggests that the current Python's solution is not ideal :-)
--
__("< Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTĘPCZA
QRCZAK
More information about the Python-list
mailing list