Skip to content

Commit 216f45e

Browse files
authored
gh-98348: Mention ReferenceError in weakref.proxy documentation (#98355)
1 parent 268129a commit 216f45e

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
@@ -146,6 +146,9 @@ See :ref:`__slots__ documentation <slots>` for details.
146146
prevent their use as dictionary keys. *callback* is the same as the parameter
147147
of the same name to the :func:`ref` function.
148148

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

0 commit comments

Comments
 (0)