[issue2482] Decimal(unicode)

Oleg Broytmann report at bugs.python.org
Tue Mar 25 16:37:13 CET 2008


New submission from Oleg Broytmann <phd at phd.pp.ru>:

Decimal(u'123').to_eng_string() returns unicode in Python 2.5.2. That's
probably due to the optimization in decimal module, after which decimal
stores coefficient (mantissa) as a str, and doesn't coerce input to str.

See the thread at
http://mail.python.org/pipermail/python-dev/2008-March/078189.html

----------
components: Library (Lib)
messages: 64488
nosy: phd
severity: normal
status: open
title: Decimal(unicode)
type: behavior
versions: Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2482>
__________________________________


More information about the Python-bugs-list mailing list