bpo-36144: Add union operators to WeakValueDictionary584 (#19127)

This commit is contained in:
Curtis Bucher 2020-03-24 18:51:29 -07:00 committed by GitHub
parent 37fcbb65d4
commit 8f1ed21ecf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 60 additions and 0 deletions

View file

@ -200,6 +200,9 @@ than needed.
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, as specified in :pep:`584`.
:class:`WeakValueDictionary` objects have an additional method that has the
same issues as the :meth:`keyrefs` method of :class:`WeakKeyDictionary`
objects.