From ff81cb812dac5c6f01006fd3d39b99bba6ffc263 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 22 Oct 2009 02:36:47 +0000 Subject: [PATCH] rewrite to be nice to other implementations --- Doc/library/weakref.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst index c800ecd31e3..1c35493c2e6 100644 --- a/Doc/library/weakref.rst +++ b/Doc/library/weakref.rst @@ -77,8 +77,8 @@ 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`). +weak references even when subclassed (This is an implementation detail and may +be different across various Python implementations.). Extension types can easily be made to support weak references; see :ref:`weakref-support`.