Serhiy Storchaka added the comment:

Here is updated patch. Differences:

* Deprecation warning is now emitted in functions accepting floats (like 
math.sqrt).
* Improved error messages. Now reported wrong type name and a type of wrong 
__float__ method.
* float() now returns the same object for exact float argument.

Could you propose better warning message?

----------

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

Reply via email to