On Dec 31 2008, 11:02 pm, Steven D'Aprano <st...@remove-this- cybersource.com.au> wrote: > On Sun, 28 Dec 2008 06:38:32 -0800, Mark Dickinson wrote: > > On Dec 28, 7:28 am, Steven D'Aprano <st...@remove-this- > > cybersource.com.au> wrote: > >> Ah crap, I forgot that from_float() has been left out of the decimal > >> API. That's very annoying. > > > Agreed. It's maybe even annoying enough that a feature request at > > bugs.python.org might be honoured. (Hint, hint!) > > I can take a hint :) > > http://bugs.python.org/issue4796#
Decimal.from_float() implemented by Raymond Hettinger for Python 2.7 and Python 3.1, within 72 hours of Steven submitting the feature request. If only all issues could be resolved this quickly. :-) Mark -- http://mail.python.org/mailman/listinfo/python-list