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 scoder
Recipients josh.r, mark.dickinson, pitrou, scoder, serhiy.storchaka, vstinner
Date 2014-05-03.10:17:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399112274.95.0.00736976831683.issue21420@psf.upfronthosting.co.za>
In-reply-to
Content
LGTM, can't see a case where this might go wrong (errors and type checks are handled before the added code).

It also seems a sufficiently common case to optimise it internally. The 2**n spelling is easier to read and to get right than the shifting, so it's good to make both similarly fast to remove an excuse for micro optimisations in Python code.
History
Date User Action Args
2014-05-03 10:17:55scodersetrecipients: + scoder, mark.dickinson, pitrou, vstinner, serhiy.storchaka, josh.r
2014-05-03 10:17:54scodersetmessageid: <1399112274.95.0.00736976831683.issue21420@psf.upfronthosting.co.za>
2014-05-03 10:17:54scoderlinkissue21420 messages
2014-05-03 10:17:54scodercreate