Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff8c1e5

Browse files
committed
Merged revisions 75580 via svnmerge from
svn+ssh://[email protected]/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. ........
1 parent 6a354d7 commit ff8c1e5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Doc/library/weakref.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ support weak references but can add support through subclassing::
7272

7373
obj = Dict(red=1, green=2, blue=3) # this object is weak referenceable
7474

75+
Other built-in types such as :class:`tuple` and :class:`int` do not support
76+
weak references even when subclassed (those types implemented as a
77+
:ctype:`PyVarObject`).
78+
7579
Extension types can easily be made to support weak references; see
7680
:ref:`weakref-support`.
7781

0 commit comments

Comments
 (0)