Class static methods

Aahz Maruch aahz at netcom.com
Mon Jul 24 11:05:09 EDT 2000


In article <8lh6ri$dkl$1 at nnrp1.deja.com>,
Guillaume  <forums at memoire.com> wrote:
>
>Well, now that I have class static vars, I need class static methods...
>Is it possible in Python ? Not sure...

Nope.  You have two options:

* generate an instance of the class and fake it through an instance
method (deprecated)

* segregate the class into its own module and use module-global
functions as proxies for class static methods (preferred)
--
                      --- Aahz (Copyright 2000 by aahz at netcom.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

Zie is so far from a clue that it would take a sub-light vessel several
years to reach one.  --Aahz



More information about the Python-list mailing list