]> granicus.if.org Git - python/commitdiff
Merged revisions 75580 via svnmerge from
authorGeorg Brandl <georg@python.org>
Wed, 21 Oct 2009 07:17:48 +0000 (07:17 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 21 Oct 2009 07:17:48 +0000 (07:17 +0000)
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.
........

Doc/library/weakref.rst

index dcc5bf3a6b3a91dffdd76b7d7072ca0178cd4c05..06a432d0471ba015815f08cc229f6c48d3ba0e91 100644 (file)
@@ -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`.