Google won't let me search |= so I'm having trouble finding relevant documentation. Anybody know?
+1
A:
In Python, and many other programming languages, |
is the bitwise-OR operation. |=
is to |
as +=
is to +
.
Daniel Stutzbach
2010-10-14 01:01:56
Gotcha, thanks! That was super easy...
Sean
2010-10-14 01:03:08
+1
A:
It performs a binary bitwise OR of the left-hand and right-hand sides of the assignment, then stores the result in the left-hand variable.
http://docs.python.org/reference/expressions.html#binary-bitwise-operations
Brandon Craig Rhodes
2010-10-14 01:02:39