Kaydet (Commit) cf842ad4 authored tarafından Georg Brandl's avatar Georg Brandl

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

üst 9bd246bb
......@@ -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`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment