Re: how to define a static field of a given class

2006-06-02 Thread feel_energetic
thanks for all of your replies I did this before I posted the subject but got (NameError: global name 'startTime' is not defined) the most important thing i didn't know is "the static field should be referred with the qualifier ClassName" it's a little different from C++ :) (the static field c

how to define a static field of a given class

2006-06-02 Thread feel_energetic
Hi, I already knew how to define a static method of a class( using staticmethod() ),but I find there isn't a built-in func to build a static field ( something like staticfield() ) can anyone help me on this? thanks very much for your help :) -- http://mail.python.org/mailman/listinfo