diff options
author | Brandt Bucher <brandtbucher@gmail.com> | 2020-03-07 19:03:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-07 19:03:09 (GMT) |
commit | 4663f66f3554dd8e2ec130e40f6abb3c6a514775 (patch) | |
tree | 479bda23ce4895419248e76431066a81d9088c94 /Misc | |
parent | 8f130536926a30237b5297780d61ef4232e88577 (diff) | |
download | cpython-4663f66f3554dd8e2ec130e40f6abb3c6a514775.zip cpython-4663f66f3554dd8e2ec130e40f6abb3c6a514775.tar.gz cpython-4663f66f3554dd8e2ec130e40f6abb3c6a514775.tar.bz2 |
bpo-36144: Update MappingProxyType with PEP 584's operators (#18814)
We make `|=` raise TypeError, since it would be surprising if `C.__dict__ |= {'x': 0}` silently did nothing, while `C.__dict__.update({'x': 0})` is an error.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2020-02-25-09-28-06.bpo-36144.Rbvvi7.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-02-25-09-28-06.bpo-36144.Rbvvi7.rst b/Misc/NEWS.d/next/Library/2020-02-25-09-28-06.bpo-36144.Rbvvi7.rst new file mode 100644 index 0000000..da0ff9d --- /dev/null +++ b/Misc/NEWS.d/next/Library/2020-02-25-09-28-06.bpo-36144.Rbvvi7.rst @@ -0,0 +1,2 @@ +:class:`types.MappingProxyType` objects now support the merge (``|``) operator +from :pep:`584`. |