Static member variables

Aahz Maruch aahz at netcom.com
Sun Jul 9 23:43:45 EDT 2000


In article <963176664.23519426 at news.libertysurf.fr>,
Jerome Quelin  <jerome.quelin at insalien.org> wrote:
>
>And is it possible to have a static method (ie, a class method in C++
>jargon) ?

Nope.  The standard answer is to stick the class in its own module and
create module-level functions that access class variables.  Wish I'd
known that earlier; I created a hack that saves an instance of the
class.....
--
                      --- 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

"do you want my self-identities alphabetically, chronologically, or in
random order?"  -- Misha



More information about the Python-list mailing list