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

This commit is contained in:
fancidev 2022-10-26 11:48:24 +08:00 committed by GitHub
parent 268129a74f
commit 216f45e4fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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