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 remi.lapeyre
Recipients pablogsal, remi.lapeyre, rhettinger, xtreak
Date 2019-02-10.19:20:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549826417.73.0.980332523994.issue35959@roundup.psfhosted.org>
In-reply-to
Content
Could it be https://github.com/python/cpython/blob/master/Modules/mathmodule.c#L2565

When 0 is in the iterator, i_result get sets to 0 and then on the next iteration x/i_result is 0/0 which is undefined behavior?

C99 6.5.5p5 - The result of the / operator is the quotient from the division of the first operand by the second; the result of the % operator is the remainder. In both operations, if the value of the second operand is zero, the behavior is undefined.

I will do some tests, if it's that I will post a patch.
History
Date User Action Args
2019-02-10 19:20:19remi.lapeyresetrecipients: + remi.lapeyre, rhettinger, pablogsal, xtreak
2019-02-10 19:20:17remi.lapeyresetmessageid: <1549826417.73.0.980332523994.issue35959@roundup.psfhosted.org>
2019-02-10 19:20:17remi.lapeyrelinkissue35959 messages
2019-02-10 19:20:17remi.lapeyrecreate