dimagi/dimagi-utils — pull request #27 by dannyroberts (2012-11-27 10:05:36+00:00)
Title: make memoized cache on the instance rather than on the class when dealin...

...g with methods, to fix a pervasive memory leak

I also removed an exception silencer; now if you call a `@memoized` function with unhashable arguments, it'll fail hard and raise a TypeError. I searched the code for all usages of `@memoized` and currently none of them are vulnerable to this, so I'd be quite surprised if anything in our code base encountered this error.