static variables?

Josh jslmaslk at earthlink.net
Mon Nov 18 23:18:16 EST 2002


Hi guys,

I am a python newbie, and I am sure there is an easy answer but, Is there
any equivalent to C's static variables in Python? If not, how can you have
variables inside a function, that 'remember' their values between function
calls?

Josh





More information about the Python-list mailing list