Terry J. Reedy added the comment:

After reading the comments, I am ambivalent about a conversion function, and 
given the lack of consensus or even a clear majority, -1. (Which implies a 
change in issue title.)

I am +1 on using the new .format() machinery to have fractions format 
themselves. (Unless Python already does so for other purposes, it should do so 
without importing decimal.) The uploaded function passes the included test 
cases. I guess the rounding should be whatever we do for floats. I fudged that 
in the example.

----------
Added file: http://bugs.python.org/file26997/fracdec.py

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

Reply via email to