Hello. In Python 2.5.1 the code import decimal
for d in '123', u'123': x = decimal.Decimal(d) print type(x.to_eng_string()) prints <type 'str'> <type 'str'> In 2.5.2 it prints <type 'str'> <type 'unicode'> Why the change? Is it a bug or a feature? Shouldn't .to_eng_string() always return a str? Oleg. -- Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com