Message135191
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. |
|
Date |
User |
Action |
Args |
2011-05-05 11:42:54 | mark.dickinson | set | recipients:
+ mark.dickinson, docs@python, Kotan |
2011-05-05 11:42:54 | mark.dickinson | set | messageid: <1304595774.27.0.563457000415.issue12005@psf.upfronthosting.co.za> |
2011-05-05 11:42:53 | mark.dickinson | link | issue12005 messages |
2011-05-05 11:42:53 | mark.dickinson | create | |
|