new style class
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Sat Nov 3 00:29:26 EDT 2007
En Fri, 02 Nov 2007 08:58:32 -0300, gert <gert.cuykens at gmail.com> escribió:
> Could not one of you just say "@staticmethod" for once damnit :)
Do we have to read your mind now? You miss-typed the method names the
first time. You could equally have forgotten to type the 'self' parameter.
Don't you expect too much?
BTW, most of the time staticmethods are NOT required at all. Using a plain
function instead is perfectly valid unless you have a special reason to
prefer a staticmethod.
--
Gabriel Genellina
More information about the Python-list
mailing list