summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-10-26 03:55:29 (GMT)
committerGitHub <noreply@github.com>2022-10-26 03:55:29 (GMT)
commit2aedba59ecc7e89479226f0013c1771c4ef66413 (patch)
tree26137d4ddacbadad2cbdbd1a17eaefa2e62b6ad4 /Doc
parent7a25d27ec2c33ef132f72ebaef40279b53964509 (diff)
downloadcpython-2aedba59ecc7e89479226f0013c1771c4ef66413.zip
cpython-2aedba59ecc7e89479226f0013c1771c4ef66413.tar.gz
cpython-2aedba59ecc7e89479226f0013c1771c4ef66413.tar.bz2
gh-98348: Mention ReferenceError in weakref.proxy documentation (GH-98355)
(cherry picked from commit 216f45e4fec42407ff744b915523a226a0070ff1) Co-authored-by: fancidev <fancidev@gmail.com>
Diffstat (limited to 'Doc')
-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 ``@=``.