From 216f45e4fec42407ff744b915523a226a0070ff1 Mon Sep 17 00:00:00 2001 From: fancidev Date: Wed, 26 Oct 2022 11:48:24 +0800 Subject: gh-98348: Mention ReferenceError in weakref.proxy documentation (#98355) --- Doc/library/weakref.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst index 8397de4..a1e542b 100644 --- a/Doc/library/weakref.rst +++ b/Doc/library/weakref.rst @@ -146,6 +146,9 @@ See :ref:`__slots__ documentation ` for details. prevent their use as dictionary keys. *callback* is the same as the parameter of the same name to the :func:`ref` function. + Accessing an attribute of the proxy object after the referent is + garbage collected raises :exc:`ReferenceError`. + .. versionchanged:: 3.8 Extended the operator support on proxy objects to include the matrix multiplication operators ``@`` and ``@=``. -- cgit v0.12