gh-98348: Mention ReferenceError in weakref.proxy documentation (GH-98355)

(cherry picked from commit 216f45e4fe)

Co-authored-by: fancidev <fancidev@gmail.com>
This commit is contained in:
Miss Islington (bot) 2022-10-25 20:55:29 -07:00 committed by GitHub
parent 0f93725063
commit 5e08585317
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ``@=``.