[issue31406] crashes when comparing between a Decimal object and a bad Rational object

2017-09-10 Thread Stefan Krah
Changes by Stefan Krah : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue31406] crashes when comparing between a Decimal object and a bad Rational object

2017-09-10 Thread Stefan Krah
Stefan Krah added the comment: Thanks for the report and the patch! -- resolution: -> fixed versions: +Python 3.6 ___ Python tracker ___ ___

[issue31406] crashes when comparing between a Decimal object and a bad Rational object

2017-09-10 Thread Stefan Krah
Stefan Krah added the comment: New changeset f8909d0e4b652256e4da153fa6be664490f60a07 by Stefan Krah (Miss Islington (bot)) in branch '3.6': [3.6] bpo-31406: Fix crash due to lack of type checking in subclassing. (GH-3477) (#3479) https://github.com/python/cpython/commit/f8909d0e4b652256e4da15

[issue31406] crashes when comparing between a Decimal object and a bad Rational object

2017-09-10 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +3469 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31406] crashes when comparing between a Decimal object and a bad Rational object

2017-09-10 Thread Stefan Krah
Stefan Krah added the comment: New changeset 3cedf46cdbeefc019f4a672c1104f3d5e94712bd by Stefan Krah in branch 'master': bpo-31406: Fix crash due to lack of type checking in subclassing. (#3477) https://github.com/python/cpython/commit/3cedf46cdbeefc019f4a672c1104f3d5e94712bd --

[issue31406] crashes when comparing between a Decimal object and a bad Rational object

2017-09-10 Thread Stefan Krah
Changes by Stefan Krah : -- pull_requests: +3468 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue31406] crashes when comparing between a Decimal object and a bad Rational object

2017-09-10 Thread Oren Milman
Changes by Oren Milman : -- keywords: +patch pull_requests: +3467 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue31406] crashes when comparing between a Decimal object and a bad Rational object

2017-09-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka, skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31406] crashes when comparing between a Decimal object and a bad Rational object

2017-09-10 Thread Oren Milman
New submission from Oren Milman: The following code crashes the interpreter: import decimal import fractions class BadRational(fractions.Fraction): numerator = None denominator = 42 decimal.Decimal() < BadRational() this is because numerator_as_decimal() (in Modules/_decimal/_decimal