summaryrefslogtreecommitdiffstats
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)
commit5e085853176df87a04fc9ebc19111c6b61b18f4c (patch)
tree8d94be758947237a9e5f66acde4c2514d4e4776f
parent0f937250631100d574c7b857c098a440b028f2b2 (diff)
downloadcpython-5e085853176df87a04fc9ebc19111c6b61b18f4c.zip
cpython-5e085853176df87a04fc9ebc19111c6b61b18f4c.tar.gz
cpython-5e085853176df87a04fc9ebc19111c6b61b18f4c.tar.bz2
gh-98348: Mention ReferenceError in weakref.proxy documentation (GH-98355)
(cherry picked from commit 216f45e4fec42407ff744b915523a226a0070ff1) Co-authored-by: fancidev <fancidev@gmail.com>
-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 4b0945c..9a8289a 100644
--- a/Doc/library/weakref.rst
+++ b/Doc/library/weakref.rst
@@ -144,6 +144,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 ``@=``.