Raymond Hettinger added the comment:

I vote for ignoring this and calling it not-a-bug.  In a way, it is no more 
interesting than a dict like object defining __hash__ to return a random number.

The intention for from_float() is to convert binary floats.  It was not meant 
to be generalized to handle arbitrary fractions.  I concur with Mark's comment, 
"Note that by overriding as_integer_ratio, you're breaking its "contract"".

----------

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

Reply via email to