@@ -65,8 +65,8 @@ exposed by the :mod:`weakref` module for the benefit of advanced uses.
65
65
66
66
Not all objects can be weakly referenced; those objects which can include class
67
67
instances, functions written in Python (but not in C), instance methods, sets,
68
- frozensets, some :term: `file objects <file object> `, :term: `generator ` \s , type
69
- objects, sockets, arrays, deques, regular expression pattern objects, and code
68
+ frozensets, some :term: `file objects <file object> `, :term: `generators < generator> `,
69
+ type objects, sockets, arrays, deques, regular expression pattern objects, and code
70
70
objects.
71
71
72
72
.. versionchanged :: 3.2
@@ -80,9 +80,10 @@ support weak references but can add support through subclassing::
80
80
81
81
obj = Dict(red=1, green=2, blue=3) # this object is weak referenceable
82
82
83
- Other built-in types such as :class: `tuple ` and :class: `int ` do not support weak
84
- references even when subclassed (This is an implementation detail and may be
85
- different across various Python implementations.).
83
+ .. impl-detail ::
84
+
85
+ Other built-in types such as :class: `tuple ` and :class: `int ` do not support weak
86
+ references even when subclassed.
86
87
87
88
Extension types can easily be made to support weak references; see
88
89
:ref: `weakref-support `.
0 commit comments