On Tue, 01 May 2012 07:32:36 +0200 raymond.hettinger email@example.com wrote:
http://hg.python.org/cpython/rev/f981fe3b8bf7 changeset: 76681:f981fe3b8bf7 user: Raymond Hettinger firstname.lastname@example.org date: Mon Apr 30 22:32:16 2012 -0700 summary: Move make_key() out of the decorator body. Make keys that only need to be hashed once.
How does it work? A new _CacheKey instance is created at each cache lookup anyway.