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 Kotan, docs@python, mark.dickinson
Date 2011-05-05.11:42:53
SpamBayes Score 2.4520681e-05
Marked as misclassified No
Message-id <1304595774.27.0.563457000415.issue12005@psf.upfronthosting.co.za>
In-reply-to
Content
The doc change should also note that // and divmod suffer from a similar mismatch:

>>> Decimal(-2) // Decimal(3)
Decimal('-0')
>>> -2 // 3
-1
>>> -2.0 // 3
-1.0

However, the invariant that x = x // y * y + x % y is retained, as it should be.
History
Date User Action Args
2011-05-05 11:42:54mark.dickinsonsetrecipients: + mark.dickinson, docs@python, Kotan
2011-05-05 11:42:54mark.dickinsonsetmessageid: <1304595774.27.0.563457000415.issue12005@psf.upfronthosting.co.za>
2011-05-05 11:42:53mark.dickinsonlinkissue12005 messages
2011-05-05 11:42:53mark.dickinsoncreate