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 marcosthomazs
Recipients marcosthomazs
Date 2017-03-15.07:56:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1489564600.52.0.574999326638.issue29815@psf.upfronthosting.co.za>
In-reply-to
Content
At divide a negative integer number for a positive integer number, the result is wrong. For example, in operation:

a, b, c = -7, 2, 7
d = divmod(a, b)
print a//b, a%b, c[0], c // b, c%b

The values printed are -4  1 3 1
History
Date User Action Args
2017-03-15 07:56:40marcosthomazssetrecipients: + marcosthomazs
2017-03-15 07:56:40marcosthomazssetmessageid: <1489564600.52.0.574999326638.issue29815@psf.upfronthosting.co.za>
2017-03-15 07:56:40marcosthomazslinkissue29815 messages
2017-03-15 07:56:40marcosthomazscreate