tags:

views:

70

answers:

2

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
Gotcha, thanks! That was super easy...
Sean
+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
Gotcha, thanks! That was super easy...
Sean