[New-bugs-announce] [issue39806] different behavior between __ior__ and __or__ in dict made by PEP 584
Manjusaka
report at bugs.python.org
Sun Mar 1 04:26:22 EST 2020
New submission from Manjusaka <lizheao940510 at gmail.com>:
Hello Guys:
I have tried Python 3.9.0a4, I have an issue: the __ior__ and the __or__ have different behavior
For example:
x={}
y=[(1,2)]
x|=y is right and x=x|y will raise an exception.
I think it's should be better make the same between two magic method ?
----------
components: C API
messages: 363045
nosy: Manjusaka
priority: normal
severity: normal
status: open
title: different behavior between __ior__ and __or__ in dict made by PEP 584
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39806>
_______________________________________
More information about the New-bugs-announce
mailing list