static variables?

Erik Max Francis max at alcyone.com
Tue Nov 19 20:33:12 EST 2002


Joe Heafner wrote:

> I'm brand new to Python. Is there a way to have static variables in a
> function? By "static", I mean the variable's value is preserved
> between
> function invocations.

Check the other thread going on right now with exactly the same subject.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ Guided by the blue light that takes you away / I'm on my way home
\__/ Neneh Cherry
    Bosskey.net: Counter-Strike / http://www.bosskey.net/cs/
 A personal guide to Counter-Strike.



More information about the Python-list mailing list