Message369473
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 |
|
Date |
User |
Action |
Args |
2020-05-20 19:34:22 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, cs-cordero |
2020-05-20 19:34:22 | serhiy.storchaka | set | messageid: <1590003262.86.0.63212023193.issue40702@roundup.psfhosted.org> |
2020-05-20 19:34:22 | serhiy.storchaka | link | issue40702 messages |
2020-05-20 19:34:22 | serhiy.storchaka | create | |
|