I've been watching this thread for couple days now. I followed the bug report and all that stuff. It's very interesting to me how you guys talk about this stuff. I like it alot. I a new guy to python, just fyi. I'm one of my current projects I'm using Decimal as well and I think it be a huge pain in the you know what that it doesn't take floats as input.
I'm currently doing this in my code: a=str(decimal.Decimal(str(round(self.value,2)-round(float(subtract),2)))) I know it's messy and I need sleep, yawn. But you see what I'm getting at here. I have to jump through somuch hoops to get what I wanted out of this. To be up front, I'm not sure that's what I wanted. Too tired. Anyway, I'm glad you guys got it pushed into 2.7 and 3.1. Thank you so much for this. Also, another reason why I'm posting to this thread. I noticed some error/typo in line 683 of decimal.py located on public svn repo. This is what is looks like. sign = 0 if _math.copysign(1.0, f) == 1.0 else 1 I'm not trying to mention it to show someones flaws, rather I want to help you guys. Genuinely. I want in on the action. To do what I can, or what I'm capable of. So please do _NOT_ take it that way. This is awesome stuff, Thank you. -A On Sun, Jan 4, 2009 at 1:30 AM, Steven D'Aprano < st...@remove-this-cybersource.com.au> wrote: > On Sat, 03 Jan 2009 13:34:11 -0800, Mark Dickinson wrote: > > > On Jan 3, 9:27 pm, Mark Dickinson <dicki...@gmail.com> wrote: > >> 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. :-) > > > > Rats. I left out the crucial line of that post, namely: > > > > Thank you, Steven! > > And many thanks to both you and Raymond, firstly for doing the actual > work, and secondly for your patience with my questions on the bug tracker. > > > -- > Steven > -- > http://mail.python.org/mailman/listinfo/python-list > -- А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
-- http://mail.python.org/mailman/listinfo/python-list