static methods
Aahz Maruch
aahz at panix.com
Fri Mar 23 23:38:06 EST 2001
In article <mailman.985383828.2942.python-list at python.org>,
Clark C. Evans <cce at clarkevans.com> wrote:
>
>I was wondering if there is any rationale as to why
>Python classes do not have static methods?
Without debating the rationale, the standard answer is to stick the
class into a module with the same name and use module global functions
to simulate static methods.
--
--- Aahz <*> (Copyright 2001 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het Pythonista http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
"I won't accept a model of the universe in which free will, omniscient
gods, and atheism are simultaneously true." -- M
More information about the Python-list
mailing list