#7170: fix explanation about non-weakrefable builtin types.

This commit is contained in:
Georg Brandl 2009-10-21 07:15:59 +00:00
parent 9bd246bba9
commit cf842ad418
1 changed files with 4 additions and 0 deletions

View 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`.