News for hackers. Stuff that matters.
Re:A few things to remember while coding in Python by andreasvc on Sunday May 20, 2012 @11:22AM (#3998985)
That's an unpythonic hack. It is possible to have an explicit static variable using function attributes; another way is to use a proper memoization decorator which factors this out.

There are no comments on this comment yet.