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 pitrou
Recipients Arfrever, cvrebert, eric.araujo, ezio.melotti, jcea, mark.dickinson, pitrou, ralhei, rhettinger, serhiy.storchaka, skrah
Date 2014-03-24.21:31:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395696715.59.0.0554142261967.issue16535@psf.upfronthosting.co.za>
In-reply-to
Content
The patch isn't really ok, IMO. It forcibly imports the decimal module and then looks up the type there. The decimal module is a rather large one and it shouldn't get imported if it doesn't get used.

I think it would be better to rely on the __float__ special method, which would also automatically accept other numberish types such as Fraction.
History
Date User Action Args
2014-03-24 21:31:55pitrousetrecipients: + pitrou, rhettinger, jcea, mark.dickinson, ezio.melotti, eric.araujo, Arfrever, cvrebert, skrah, serhiy.storchaka, ralhei
2014-03-24 21:31:55pitrousetmessageid: <1395696715.59.0.0554142261967.issue16535@psf.upfronthosting.co.za>
2014-03-24 21:31:55pitroulinkissue16535 messages
2014-03-24 21:31:55pitroucreate