This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients ZackerySpytz, docs@python, mark.dickinson, ncoghlan
Date 2020-05-24.10:17:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590315465.14.0.766487349262.issue39301@roundup.psfhosted.org>
In-reply-to
Content
> I confess that I've no idea what the "without overflow check" bit means

After some digging, it is indeed to do with the int/long unification:

- In Python 2.1, arithmetic operations on ints would raise OverflowError on overflow.
- Except that left shift did not raise: shifted out bits were simply lost.  This is described in PEP 237.

In Python 2.2, arithmetic operations (including left shift) were changed to produce a long instead of overflowing.

The "without overflow check" part of the doc almost certainly refers to the Python 2.1 behaviour (at least for left shift; I'm guessing that for right shift, where overflow isn't possible, this was just a redundant copy-paste), and was never updated. It should be removed for both left shift and right shift.
History
Date User Action Args
2020-05-24 10:17:45mark.dickinsonsetrecipients: + mark.dickinson, ncoghlan, docs@python, ZackerySpytz
2020-05-24 10:17:45mark.dickinsonsetmessageid: <1590315465.14.0.766487349262.issue39301@roundup.psfhosted.org>
2020-05-24 10:17:45mark.dickinsonlinkissue39301 messages
2020-05-24 10:17:44mark.dickinsoncreate