[Python-checkins] r75580 - python/trunk/Doc/library/weakref.rst
georg.brandl
python-checkins at python.org
Wed Oct 21 09:16:00 CEST 2009
Author: georg.brandl
Date: Wed Oct 21 09:15:59 2009
New Revision: 75580
Log:
#7170: fix explanation about non-weakrefable builtin types.
Modified:
python/trunk/Doc/library/weakref.rst
Modified: python/trunk/Doc/library/weakref.rst
==============================================================================
--- python/trunk/Doc/library/weakref.rst (original)
+++ python/trunk/Doc/library/weakref.rst Wed Oct 21 09:15:59 2009
@@ -76,6 +76,10 @@
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`.
More information about the Python-checkins
mailing list