why is there no class (static) methods in Python ?
rgruet at intraware.com
Sun Jun 17 22:21:36 CEST 2001
I (and other people on the Python french mail list) wonder why there
are no class (static) methods in Python. You cannot define a really
unbounded (ie to an instance) method within the namespace of a class.
It's not natural nor elegant to have to create an instance to call a
method which is not related to a particular instance. We would like to
be able to write things like:
def staticFoo(x): print x
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 370 bytes
Desc: Card for Richard Gruet
More information about the Python-list