Mercurial > cpython-lru_cache-weakref
annotate Misc/python-wing5.wpr @ 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 | eb4b6709d092 |
| children |
| rev | line source |
|---|---|
|
87408
eb4b6709d092
Adding Wing 5 project file
Michael Foord <michael@voidspace.org.uk>
parents:
diff
changeset
|
1 #!wing |
|
eb4b6709d092
Adding Wing 5 project file
Michael Foord <michael@voidspace.org.uk>
parents:
diff
changeset
|
2 #!version=5.0 |
|
eb4b6709d092
Adding Wing 5 project file
Michael Foord <michael@voidspace.org.uk>
parents:
diff
changeset
|
3 ################################################################## |
|
eb4b6709d092
Adding Wing 5 project file
Michael Foord <michael@voidspace.org.uk>
parents:
diff
changeset
|
4 # Wing IDE project file # |
|
eb4b6709d092
Adding Wing 5 project file
Michael Foord <michael@voidspace.org.uk>
parents:
diff
changeset
|
5 ################################################################## |
|
eb4b6709d092
Adding Wing 5 project file
Michael Foord <michael@voidspace.org.uk>
parents:
diff
changeset
|
6 [project attributes] |
|
eb4b6709d092
Adding Wing 5 project file
Michael Foord <michael@voidspace.org.uk>
parents:
diff
changeset
|
7 proj.directory-list = [{'dirloc': loc('..'), |
|
eb4b6709d092
Adding Wing 5 project file
Michael Foord <michael@voidspace.org.uk>
parents:
diff
changeset
|
8 'excludes': [u'.hg', |
|
eb4b6709d092
Adding Wing 5 project file
Michael Foord <michael@voidspace.org.uk>
parents:
diff
changeset
|
9 u'Lib/unittest/__pycache__', |
|
eb4b6709d092
Adding Wing 5 project file
Michael Foord <michael@voidspace.org.uk>
parents:
diff
changeset
|
10 u'Lib/unittest/test/__pycache__', |
|
eb4b6709d092
Adding Wing 5 project file
Michael Foord <michael@voidspace.org.uk>
parents:
diff
changeset
|
11 u'Lib/__pycache__', |
|
eb4b6709d092
Adding Wing 5 project file
Michael Foord <michael@voidspace.org.uk>
parents:
diff
changeset
|
12 u'build', |
|
eb4b6709d092
Adding Wing 5 project file
Michael Foord <michael@voidspace.org.uk>
parents:
diff
changeset
|
13 u'Doc/build'], |
|
eb4b6709d092
Adding Wing 5 project file
Michael Foord <michael@voidspace.org.uk>
parents:
diff
changeset
|
14 'filter': '*', |
|
eb4b6709d092
Adding Wing 5 project file
Michael Foord <michael@voidspace.org.uk>
parents:
diff
changeset
|
15 'include_hidden': False, |
|
eb4b6709d092
Adding Wing 5 project file
Michael Foord <michael@voidspace.org.uk>
parents:
diff
changeset
|
16 'recursive': True, |
|
eb4b6709d092
Adding Wing 5 project file
Michael Foord <michael@voidspace.org.uk>
parents:
diff
changeset
|
17 'watch_for_changes': True}] |
|
eb4b6709d092
Adding Wing 5 project file
Michael Foord <michael@voidspace.org.uk>
parents:
diff
changeset
|
18 proj.file-type = 'shared' |
