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, serhiy.storchaka, vstinner, yselivanov
Date 2016-02-09.13:41:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455025269.31.0.272518786441.issue26289@psf.upfronthosting.co.za>
In-reply-to
Content
A slightly neater way to compute the result in the case that the signs differ is 

  div = ~((left - 1) / right)

That saves the extra multiplication and equality check.
History
Date User Action Args
2016-02-09 13:41:09mark.dickinsonsetrecipients: + mark.dickinson, pitrou, vstinner, serhiy.storchaka, yselivanov
2016-02-09 13:41:09mark.dickinsonsetmessageid: <1455025269.31.0.272518786441.issue26289@psf.upfronthosting.co.za>
2016-02-09 13:41:09mark.dickinsonlinkissue26289 messages
2016-02-09 13:41:09mark.dickinsoncreate