New submission from Marcos Thomaz: 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 ---------- components: Interpreter Core messages: 289647 nosy: marcosthomazs priority: normal severity: normal status: open title: Fail at divide a negative integer number for a positive integer number type: crash versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29815> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com