Luke Dunstan wrote:
> Looking at the source code for float() in floatobject.c, it calls
> PyOS_ascii_strtod() in pystrtod.c. This function then calls localeconv() to
> find the decimal point character for the current locale and if it is not '.'
> then the function translates any '.' in the input
- Original Message -
From: "Giovanni Petrucciani" <[EMAIL PROTECTED]>
To: "Jan Ischebeck" <[EMAIL PROTECTED]>
Cc:
Sent: Saturday, April 08, 2006 9:32 PM
Subject: Re: [PythonCE] Python 2.4.3 for Windows CE / ARM
> Jan Ischebeck wrote:
>> Dear Luke,
>>
>> both float("2,2") and float("2.2
Jan Ischebeck wrote:
> Dear Luke,
>
> both float("2,2") and float("2.2") don't work. They raise an
> "ValueError: invalid literal for float(): 2.2".
> Current locale is "Deutsch" (german word for "german"). After setting
> the locale to LC_ALL it is still
> "Deutsch".
>
> According to localeconv|
Dear Luke,
both float("2,2") and float("2.2") don't work. They raise an
"ValueError: invalid literal for float(): 2.2".
Current locale is "Deutsch" (german word for "german"). After setting
the locale to LC_ALL it is still
"Deutsch".
According to localeconv| 'decimal_point' is "," but this shou