summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorfancidev <fancidev@gmail.com>2022-10-26 03:48:24 (GMT)
committerGitHub <noreply@github.com>2022-10-26 03:48:24 (GMT)
commit216f45e4fec42407ff744b915523a226a0070ff1 (patch)
treedf7a9dad75e677add1625108d34477bd1a9b113f /Doc/library
parent268129a74f01adb7bb14cd71d1f38378e39d304d (diff)
downloadcpython-216f45e4fec42407ff744b915523a226a0070ff1.zip
cpython-216f45e4fec42407ff744b915523a226a0070ff1.tar.gz
cpython-216f45e4fec42407ff744b915523a226a0070ff1.tar.bz2
gh-98348: Mention ReferenceError in weakref.proxy documentation (#98355)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/weakref.rst3
1 files changed, 3 insertions, 0 deletions
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 <slots>` 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 ``@=``.