This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients cs-cordero, serhiy.storchaka
Date 2020-05-20.19:34:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590003262.86.0.63212023193.issue40702@roundup.psfhosted.org>
In-reply-to
Content
It is okay. In this case `a |= b` is equivalent to `a = a | b`.

The same behavior is for tuples, strings, and other non-mutable collections:

t = (1, 2)
t += (3, 4)
s = 'ab'
s += 'cd'

And even for numbers!

i = 5
i += 1
History
Date User Action Args
2020-05-20 19:34:22serhiy.storchakasetrecipients: + serhiy.storchaka, cs-cordero
2020-05-20 19:34:22serhiy.storchakasetmessageid: <1590003262.86.0.63212023193.issue40702@roundup.psfhosted.org>
2020-05-20 19:34:22serhiy.storchakalinkissue40702 messages
2020-05-20 19:34:22serhiy.storchakacreate