diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-26 03:55:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-26 03:55:29 (GMT) |
commit | 5e085853176df87a04fc9ebc19111c6b61b18f4c (patch) | |
tree | 8d94be758947237a9e5f66acde4c2514d4e4776f | |
parent | 0f937250631100d574c7b857c098a440b028f2b2 (diff) | |
download | cpython-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.rst | 3 |
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 ``@=``. |