A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-March/078210.html below:

[Python-Dev] Decimal(unicode)

[Python-Dev] Decimal(unicode) [Python-Dev] Decimal(unicode)Eric Smith eric+python-dev at trueblade.com
Tue Mar 25 23:43:45 CET 2008
Martin v. Löwis wrote:
>> I'd call this a bug.  The change is an accident, a side-effect of the fact
>> that in 2.5.1 the coefficient (mantissa) of a Decimal was stored as a
>> tuple, and in 2.5.2 it's stored as a string (which greatly improves efficiency).
>> Clearly in 2.5.2 the mantissa is being stored as a unicode instance in the
>> second case;  it should be explicitly coerced to str in Decimal.__new__.
>>
>> If others agree that it's a bug, I'll fix it.
> 
> If people agree it's a bug, please do fix it.

It looks like a bug to me.
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4