Add a note explaining that changing sign is a special case of losing

bits for the << operator.
This commit is contained in:
Guido van Rossum 2002-08-12 00:55:43 +00:00
parent 5962f34a59
commit 315e7ee922
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,8 @@ Incompatibilities
- Currently, x<<n can lose bits for short ints. This will be
changed to return a long int containing all the shifted-out
bits, if returning a short int would lose bits.
bits, if returning a short int would lose bits (where changing
sign is considered a special case of losing bits).
- Currently, hex and oct literals for short ints may specify
negative values; for example 0xffffffff == -1 on a 32-bit