Mercurial > cpython-lru_cache-weakref
annotate Doc/library/binary.rst @ 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 | 463f52d20314 |
| children |
| rev | line source |
|---|---|
|
78665
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
1 .. _binaryservices: |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
2 |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
3 ******************** |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
4 Binary Data Services |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
5 ******************** |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
6 |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
7 The modules described in this chapter provide some basic services operations |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
8 for manipulation of binary data. Other operations on binary data, specifically |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
9 in relation to file formats and network protocols, are described in the |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
10 relevant sections. |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
11 |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
12 Some libraries described under :ref:`textservices` also work with either |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
13 ASCII-compatible binary formats (for example, :mod:`re`) or all binary data |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
14 (for example, :mod:`difflib`). |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
15 |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
16 In addition, see the documentation for Python's built-in binary data types in |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
17 :ref:`binaryseq`. |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
18 |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
19 .. toctree:: |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
20 |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
21 struct.rst |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
22 codecs.rst |
|
463f52d20314
Close #4966: revamp the sequence docs in order to better explain the state of modern Python
Nick Coghlan <ncoghlan@gmail.com>
parents:
diff
changeset
|
23 |
