Custom Search

Monday, April 18, 2011

python does not support static variable

Python does not have "static variables" in precisely the same sense that C++ or Java do. It does have class attributes.

there is no such thing AFAIK, the closest is a class variable

Also, @staticmethod is nearly useless. @classmethod is a little more useful

No comments:

Post a Comment