summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2010-03-18 22:46:40 (GMT)
committerCollin Winter <collinw@gmail.com>2010-03-18 22:46:40 (GMT)
commit4222e9c07cc9a223ac756f8cc1c1cd2f9212765e (patch)
treed9d477df9e477ed208bee9b3748f7ad1492e8f86 /Doc
parentb3a482962d12871db122dbc843476eea054b2782 (diff)
downloadcpython-4222e9c07cc9a223ac756f8cc1c1cd2f9212765e.zip
cpython-4222e9c07cc9a223ac756f8cc1c1cd2f9212765e.tar.gz
cpython-4222e9c07cc9a223ac756f8cc1c1cd2f9212765e.tar.bz2
Merged revisions 79060 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r79060 | collin.winter | 2010-03-18 14:54:01 -0700 (Thu, 18 Mar 2010) | 4 lines Add support for weak references to code objects. This will be used by an optimization in the incoming Python 3 JIT. Patch by Reid Kleckner! ........
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/weakref.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst
index 53b13e5..7c6f6db 100644
--- a/Doc/library/weakref.rst
+++ b/Doc/library/weakref.rst
@@ -59,10 +59,10 @@ is exposed by the :mod:`weakref` module for the benefit of advanced uses.
Not all objects can be weakly referenced; those objects which can include class
instances, functions written in Python (but not in C), instance methods, sets,
frozensets, file objects, :term:`generator`\s, type objects, sockets, arrays,
-deques, and regular expression pattern objects.
+deques, regular expression pattern objects, and code objects.
.. versionchanged:: 3.2
- Added support for thread.lock and threading.Lock.
+ Added support for thread.lock, threading.Lock, and code objects.
Several built-in types such as :class:`list` and :class:`dict` do not directly
support weak references but can add support through subclassing::