summaryrefslogtreecommitdiff
path: root/Doc/library
diff options
context:
space:
mode:
authorCurtis Bucher <cpbucher5@gmail.com>2020-03-23 13:49:46 -0700
committerGitHub <noreply@github.com>2020-03-23 13:49:46 -0700
commit25e580a73c163f472fdeb5489bebef85da21655c (patch)
treeae7ee5d6817eb0efd91e6fd2db0237071fb05b06 /Doc/library
parent8dd1792c680caaf94a00cead82b238238f419172 (diff)
downloadcpython-git-25e580a73c163f472fdeb5489bebef85da21655c.tar.gz
bpo-36144: Add union operators to WeakKeyDictionary (#19106)
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/weakref.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst
index 8636e76c52..c10f436bea 100644
--- a/Doc/library/weakref.rst
+++ b/Doc/library/weakref.rst
@@ -171,6 +171,9 @@ Extension types can easily be made to support weak references; see
performed by the program during iteration may cause items in the
dictionary to vanish "by magic" (as a side effect of garbage collection).
+ .. versionchanged:: 3.9
+ Added support for ``|`` and ``|=`` operators, specified in :pep:`584`.
+
:class:`WeakKeyDictionary` objects have an additional method that
exposes the internal references directly. The references are not guaranteed to
be "live" at the time they are used, so the result of calling the references