From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 26 Oct 2022 03:55:29 +0000 (-0700) Subject: gh-98348: Mention ReferenceError in weakref.proxy documentation (GH-98355) X-Git-Tag: v3.10.9~120 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e085853176df87a04fc9ebc19111c6b61b18f4c;p=thirdparty%2FPython%2Fcpython.git gh-98348: Mention ReferenceError in weakref.proxy documentation (GH-98355) (cherry picked from commit 216f45e4fec42407ff744b915523a226a0070ff1) Co-authored-by: fancidev --- diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst index 4b0945c020f8..9a8289a7b533 100644 --- a/Doc/library/weakref.rst +++ b/Doc/library/weakref.rst @@ -144,6 +144,9 @@ See :ref:`__slots__ documentation ` 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 ``@=``.