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 serhiy.storchaka
Recipients facundobatista, mark.dickinson, rhettinger, serhiy.storchaka, skrah
Date 2016-05-08.05:13:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462684427.76.0.86950702335.issue26974@psf.upfronthosting.co.za>
In-reply-to
Content
Following example causes a segmentation fault.

from decimal import Decimal
class BadFloat(float):
    def as_integer_ratio(self):
        return 1
    def __abs__(self):
        return self

Decimal.from_float(BadFloat(1.2))
History
Date User Action Args
2016-05-08 05:13:47serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, facundobatista, mark.dickinson, skrah
2016-05-08 05:13:47serhiy.storchakasetmessageid: <1462684427.76.0.86950702335.issue26974@psf.upfronthosting.co.za>
2016-05-08 05:13:47serhiy.storchakalinkissue26974 messages
2016-05-08 05:13:47serhiy.storchakacreate