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.<br>
<br>I'm currently doing this in my code:<br><br>a=str(decimal.Decimal(str(round(self.value,2)-round(float(subtract),2))))<br><br>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. <br>
<br>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.<br><br> sign = 0 if _math.copysign(1.0, f) == 1.0 else 1<br>
<br>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<br>
<br><br><br><div class="gmail_quote">On Sun, Jan 4, 2009 at 1:30 AM, Steven D'Aprano <span dir="ltr"><<a href="mailto:steve@remove-this-cybersource.com.au">steve@remove-this-cybersource.com.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Sat, 03 Jan 2009 13:34:11 -0800, Mark Dickinson wrote:<br>
<br>
> On Jan 3, 9:27 pm, Mark Dickinson <<a href="mailto:dicki...@gmail.com">dicki...@gmail.com</a>> wrote:<br>
>> Decimal.from_float() implemented by Raymond Hettinger for Python 2.7<br>
>> and Python 3.1, within 72 hours of Steven submitting the feature<br>
>> request. If only all issues could be resolved this quickly. :-)<br>
><br>
> Rats. I left out the crucial line of that post, namely:<br>
><br>
> Thank you, Steven!<br>
<br>
</div>And many thanks to both you and Raymond, firstly for doing the actual<br>
work, and secondly for your patience with my questions on the bug tracker.<br>
<font color="#888888"><br>
<br>
--<br>
</font><div><div></div><div class="Wj3C7c">Steven<br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я<br>а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я<br>