[issue23602] Implement __format__ for Fraction

Mark Dickinson report at bugs.python.org
Mon Mar 23 18:30:06 CET 2015


Mark Dickinson added the comment:

[Eric]

> I'm not sure it needs fixing...

Hmm.  We've gone to some lengths to make sure that we get correctly-rounded results for formatting of Decimal and float types, as well as to make sure that operations like converting a Fraction to a float are correctly rounded.  It would be disappointing if the result of formatting a Fraction wasn't correctly rounded, and I'd personally consider it a bug.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23602>
_______________________________________


More information about the Python-bugs-list mailing list