Thursday, August 5, 2010

practical python trick about static variables

It seems there is no syntax to declare static variables in Python. Fortunately, here is a useful trick to accomplish the goal.