Antoine Pitrou added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16535>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to