static class methods in Python?

Moshe Zadka moshez at math.huji.ac.il
Fri Feb 18 00:48:56 EST 2000


On Fri, 18 Feb 2000 gvwilson at nevex.com wrote:

> Have there been any proposals to add the equivalent of "static"
> methods (belonging to the class, not to instances) to Python?
> If so, I'd appreciate a summary...

I think the official response is that there will be none for the
forseeable future. If you need them, and you already code, like sensible
people, one class per module, then the module's global functions can be
treated like class methods. That's what I do, anyway.

--
Moshe Zadka <mzadka at geocities.com>. 
INTERNET: Learn what you know.
Share what you don't.





More information about the Python-list mailing list