-5

What does the Python operator ilshift (<<=) and where can I find infos about it?

https://docs.python.org/2/library/operator.html#operator.ilshift

http://www.pythonlake.com/python/operators/operatorilshift

Found no info about what it does in the documentation.

Cœur
  • 37,241
  • 25
  • 195
  • 267
oxidworks
  • 1,563
  • 1
  • 14
  • 37

1 Answers1

-1

It is an BitwiseOperators (Bitwise Right Shift): https://wiki.python.org/moin/BitwiseOperators

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.

More infos:

https://www.tutorialspoint.com/python/bitwise_operators_example.htm

What does a bitwise shift (left or right) do and what is it used for?

Community
  • 1
  • 1
oxidworks
  • 1,563
  • 1
  • 14
  • 37