This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Ramchandra Apte, cvrebert, eric.smith, joncle, mark.dickinson, ncoghlan, rhettinger, skrah, terry.reedy, zach.ware
Date 2012-08-25.18:24:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1345919060.66.0.49012796807.issue15136@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-08-25 18:24:20terry.reedysetrecipients: + terry.reedy, rhettinger, mark.dickinson, ncoghlan, eric.smith, cvrebert, skrah, joncle, Ramchandra Apte, zach.ware
2012-08-25 18:24:20terry.reedysetmessageid: <1345919060.66.0.49012796807.issue15136@psf.upfronthosting.co.za>
2012-08-25 18:24:20terry.reedylinkissue15136 messages
2012-08-25 18:24:19terry.reedycreate