[issue26983] float() can return not exact float instance
Serhiy Storchaka
report at bugs.python.org
Wed May 11 06:20:50 EDT 2016
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 <report at bugs.python.org>
<http://bugs.python.org/issue26983>
_______________________________________
More information about the Python-bugs-list
mailing list