]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36144: Update MappingProxyType with PEP 584's operators (#18814)
authorBrandt Bucher <brandtbucher@gmail.com>
Sat, 7 Mar 2020 19:03:09 +0000 (11:03 -0800)
committerGitHub <noreply@github.com>
Sat, 7 Mar 2020 19:03:09 +0000 (11:03 -0800)
commit4663f66f3554dd8e2ec130e40f6abb3c6a514775
tree479bda23ce4895419248e76431066a81d9088c94
parent8f130536926a30237b5297780d61ef4232e88577
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.
Doc/library/types.rst
Lib/test/test_types.py
Misc/NEWS.d/next/Library/2020-02-25-09-28-06.bpo-36144.Rbvvi7.rst [new file with mode: 0644]
Objects/descrobject.c