diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2019-04-26 06:56:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-26 06:56:15 (GMT) |
commit | 7abb6c05afd02c17c7a941b64db5756b161b3cf7 (patch) | |
tree | e8fd0e63830dd923246db8aa57bed76b526c915f /Doc | |
parent | 3cde440f20a9db75fb2c4e65e8e4d04a53216a2d (diff) | |
download | cpython-7abb6c05afd02c17c7a941b64db5756b161b3cf7.zip cpython-7abb6c05afd02c17c7a941b64db5756b161b3cf7.tar.gz cpython-7abb6c05afd02c17c7a941b64db5756b161b3cf7.tar.bz2 |
bpo-36669: add matmul support to weakref.proxy (GH-12932)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/weakref.rst | 4 | ||||
-rw-r--r-- | Doc/whatsnew/3.8.rst | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst index 7f3d267..80a908b 100644 --- a/Doc/library/weakref.rst +++ b/Doc/library/weakref.rst @@ -139,6 +139,10 @@ Extension types can easily be made to support weak references; see prevent their use as dictionary keys. *callback* is the same as the parameter of the same name to the :func:`ref` function. + .. versionchanged:: 3.8 + Extended the operator support on proxy objects to include the matrix + multiplication operators ``@`` and ``@=``. + .. function:: getweakrefcount(object) diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst index 2270334..4cb9c4f 100644 --- a/Doc/whatsnew/3.8.rst +++ b/Doc/whatsnew/3.8.rst @@ -450,6 +450,13 @@ venv activating virtual environments under PowerShell Core 6.1. (Contributed by Brett Cannon in :issue:`32718`.) +weakref +------- + +* The proxy objects returned by :func:`weakref.proxy` now support the matrix + multiplication operators ``@`` and ``@=`` in addition to the other + numeric operators. (Contributed by Mark Dickinson in :issue:`36669`.) + xml --- |