Message214733
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. |
|
Date |
User |
Action |
Args |
2014-03-24 21:31:55 | pitrou | set | recipients:
+ pitrou, rhettinger, jcea, mark.dickinson, ezio.melotti, eric.araujo, Arfrever, cvrebert, skrah, serhiy.storchaka, ralhei |
2014-03-24 21:31:55 | pitrou | set | messageid: <1395696715.59.0.0554142261967.issue16535@psf.upfronthosting.co.za> |
2014-03-24 21:31:55 | pitrou | link | issue16535 messages |
2014-03-24 21:31:55 | pitrou | create | |
|