Serhiy Storchaka added the comment: PyDec_CheckExact(type) always return 0. Should be PyDec_CheckExact(result).
And what about other calls of PyDecType_FromFloatExact()? Can they produce broken instance of Decimal subtype? ---------- status: closed -> open _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27006> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com