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 mark.dickinson, pitrou, rhettinger, serhiy.storchaka, vstinner
Date 2014-05-05.08:54:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399280061.98.0.117577001691.issue21422@psf.upfronthosting.co.za>
In-reply-to
Content
BTW, there's also a behaviour change here.  Before the patch:

>>> True << 0
1

After the patch:

>>> True << 0
True

Which demonstrates another good reason to avoid trivial-looking optimisations: it's far too easy to accidentally change behaviour.
History
Date User Action Args
2014-05-05 08:54:22mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, pitrou, vstinner, serhiy.storchaka
2014-05-05 08:54:21mark.dickinsonsetmessageid: <1399280061.98.0.117577001691.issue21422@psf.upfronthosting.co.za>
2014-05-05 08:54:21mark.dickinsonlinkissue21422 messages
2014-05-05 08:54:21mark.dickinsoncreate