summaryrefslogtreecommitdiff
path: root/Doc/library/weakref.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-10-21 07:17:48 +0000
committerGeorg Brandl <georg@python.org>2009-10-21 07:17:48 +0000
commitff8c1e5aceb7737d424610dd1adeed773b84b8db (patch)
tree76d59c0661a96ffa809543f7968f7fd5aeaebe02 /Doc/library/weakref.rst
parent6a354d7e08f183e000c0b7cbfd60224e8db16b2b (diff)
downloadcpython-git-ff8c1e5aceb7737d424610dd1adeed773b84b8db.tar.gz
Merged revisions 75580 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r75580 | georg.brandl | 2009-10-21 09:15:59 +0200 (Mi, 21 Okt 2009) | 1 line #7170: fix explanation about non-weakrefable builtin types. ........
Diffstat (limited to 'Doc/library/weakref.rst')
-rw-r--r--Doc/library/weakref.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst
index dcc5bf3a6b..06a432d047 100644
--- a/Doc/library/weakref.rst
+++ b/Doc/library/weakref.rst
@@ -72,6 +72,10 @@ support weak references but can add support through subclassing::
obj = Dict(red=1, green=2, blue=3) # this object is weak referenceable
+Other built-in types such as :class:`tuple` and :class:`int` do not support
+weak references even when subclassed (those types implemented as a
+:ctype:`PyVarObject`).
+
Extension types can easily be made to support weak references; see
:ref:`weakref-support`.