I was looking for an example of a memoization decorator in Python2.
So far I found this one (in official? wiki): https://wiki.python.org/moin/PythonDecoratorLibrary#Memoize
My question is: does anybody see a bug in this code?
if not isinstance(args, collections.Hashable)
Yes, that appears to be an error in the code.
It appears to have been introduced in this edit.