diff options
author | fancidev <fancidev@gmail.com> | 2022-10-26 03:48:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-26 03:48:24 (GMT) |
commit | 216f45e4fec42407ff744b915523a226a0070ff1 (patch) | |
tree | df7a9dad75e677add1625108d34477bd1a9b113f /Doc/library | |
parent | 268129a74f01adb7bb14cd71d1f38378e39d304d (diff) | |
download | cpython-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.rst | 3 |
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 ``@=``. |