What does the Python operater ilshift (<<=)?
<p>What does the Python operator ilshift (&lt;&lt;=) and where can I find infos about it?</p>

<p>Thanks</p>

<p><a href="https://docs.python.org/2/library/operator.html#operator.ilshift" rel="nofollow">https://docs.python.org/2/library/operator.html#operator.ilshift</a></p>

<p><a href="http://www.pythonlake.com/python/operators/operatorilshift" rel="nofollow">http://www.pythonlake.com/python/operators/operatorilshift</a></p>

<p>Found no info about what it does in the documentation.</p>

<p>It is an BitwiseOperators (Bitwise Right Shift):
<a href="https://wiki.python.org/moin/BitwiseOperators" rel="nofollow">https://wiki.python.org/moin/BitwiseOperators</a></p>

<blockquote>
  <p>All of these operators share something in common -- they are "bitwise"
  operators. That is, they operate on numbers (normally), but instead of
  treating that number as if it were a single value, they treat it as if
  it were a string of bits, written in twos-complement binary.</p>
</blockquote>

<p>More infos:</p>

<p><a href="https://www.tutorialspoint.com/python/bitwise_operators_example.htm" rel="nofollow">https://www.tutorialspoint.com/python/bitwise_operators_example.htm</a></p>

<p><a href="http://stackoverflow.com/questions/6385792/what-does-a-bitwise-shift-left-or-right-do-and-what-is-it-used-for">What does a bitwise shift (left or right) do and what is it used for?</a></p>

python