]> granicus.if.org Git - python/commitdiff
#7170: fix explanation about non-weakrefable builtin types.
authorGeorg Brandl <georg@python.org>
Wed, 21 Oct 2009 07:15:59 +0000 (07:15 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 21 Oct 2009 07:15:59 +0000 (07:15 +0000)
Doc/library/weakref.rst

index a1a3314ffba5d84f749cf3e92def93cdc53b7066..c800ecd31e3d359953362c529eb1cea8f947951b 100644 (file)
@@ -76,6 +76,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:`long` 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`.