[Python-checkins] r75581 - in python/branches/py3k: Doc/library/weakref.rst

georg.brandl python-checkins at python.org
Wed Oct 21 09:17:48 CEST 2009


Author: georg.brandl
Date: Wed Oct 21 09:17:48 2009
New Revision: 75581

Log:
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.
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Doc/library/weakref.rst

Modified: python/branches/py3k/Doc/library/weakref.rst
==============================================================================
--- python/branches/py3k/Doc/library/weakref.rst	(original)
+++ python/branches/py3k/Doc/library/weakref.rst	Wed Oct 21 09:17:48 2009
@@ -72,6 +72,10 @@
 
    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`.
 


More information about the Python-checkins mailing list