What is "|="statement mean in python?
<p>what is "|="statement mean? This Code is just creat maze, and this is my first time to see this |= statement
i'm stack in here please help me</p>

<pre><code>width = 10
height = 8
grid = ["23" * 89 for i in xrange(height)]

N, S, E, W = 1, 2, 4, 8
HORIZONTAL, VERTICAL = 0, 1

def divide(grid, mx, my, ax, ay):
    dx = ax - mx
    dy = ay - my
    if dx &lt; 2 or dy &lt; 2:

       if dx &gt; 1:
          y = my
          for x in xrange(mx, ax-1):
              grid[y][x] |= E
              grid[y][x+1] |= W
</code></pre>

<p>what is |= mean? </p>

<p>The <code>|</code> symbol, and by extension <code>|=</code> is a bitwise OR.  This applies OR logic to the underlying bits.  For example:</p>

<pre><code>00001001
00011000
-------- |
00011001
</code></pre>

<p>So <code>9 | 24 = 25</code></p>

python