annotate Lib/test/bad_coding2.py @ 87690:66c1c9f32567 default tip

Add use_weakref option to functools.lru_cache The use_weakref option makes lru_cache create weak references to the function arguments when creating the cache key, which prevents them from staying in the memory forever even after all other references to them are gone. This is a proof of concept for http://bugs.python.org/issue19859
author Radomir Dopieralski <devel@sheep.art.pl>
date Tue, 03 Dec 2013 16:02:48 +0100
parents beacf40b5960
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
36762
22c51632b459 Set svn:eol-style to native.
Tim Peters <tim.peters@gmail.com>
parents: 36121
diff changeset
1 #coding: utf8
41575
beacf40b5960 Rip out all the u"..." literals and calls to unicode().
Guido van Rossum <guido@python.org>
parents: 36762
diff changeset
2 print('我')