Skip to content

Commit 5e08585

Browse files
gh-98348: Mention ReferenceError in weakref.proxy documentation (GH-98355)
(cherry picked from commit 216f45e) Co-authored-by: fancidev <[email protected]>
1 parent 0f93725 commit 5e08585

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/weakref.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ See :ref:`__slots__ documentation <slots>` for details.
144144
prevent their use as dictionary keys. *callback* is the same as the parameter
145145
of the same name to the :func:`ref` function.
146146

147+
Accessing an attribute of the proxy object after the referent is
148+
garbage collected raises :exc:`ReferenceError`.
149+
147150
.. versionchanged:: 3.8
148151
Extended the operator support on proxy objects to include the matrix
149152
multiplication operators ``@`` and ``@=``.

0 commit comments

Comments
 (0)