Skip to content

bpo-36144: Update MappingProxyType with PEP 584's operators (#18814)#311

Merged
sthagen merged 1 commit into
sthagen:masterfrom
python:master
Mar 7, 2020
Merged

bpo-36144: Update MappingProxyType with PEP 584's operators (#18814)#311
sthagen merged 1 commit into
sthagen:masterfrom
python:master

Conversation

@sthagen

@sthagen sthagen commented Mar 7, 2020

Copy link
Copy Markdown
Owner

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.

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.
@sthagen
sthagen merged commit 721360b into sthagen:master Mar 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants