Re: Python 2.4.3 for Windows CE / ARM

"Luke Dunstan" <[email protected]>
Newsgroups gmane.comp.python.windows-ce
Message-ID <[email protected]>
Interesting. What happens if you try float("2,2")? If that works then I 
guess PythonCE must be using your user default locale instead of the "C" 
locale. It looks like this locale-based float conversion feature was added 
in Python 2.4 but I am guessing that on the PC the default locale is "C" 
unless you explicitly change it? The output of this should confirm it:

import locale
locale.setlocale(locale.LC_ALL)
locale.localeconv()

I'm not very familiar with locale programming so I'm not sure how to fix it 
yet.

Luke

----- Original Message ----- 
From: <[email protected]>
To: "coder_infidel" <[email protected]>
Sent: Friday, April 07, 2006 9:12 PM
Subject: Re: [PythonCE] Python 2.4.3 for Windows CE / ARM


Dear Luke,
I've the same problem of Jan:
>>>float("2.2")
ValueError: invalid literal for float():2.2

bye

ivom
italy


>
> ----- Original Message ----- 
> From: "Jan Ischebeck" <[email protected]>
> To: "Luke Dunstan" <[email protected]>; <[email protected]>
> Sent: Friday, April 07, 2006 4:46 PM
> Subject: Re: [PythonCE] Python 2.4.3 for Windows CE / ARM
>
>
> > Dear Luke,
> >
> > thanks for the great work.
> >
> > I found a small regression:
> >
> > float("2.2")
> >
> > works on win32 and linux python 2.4, but raises an error using the new
> > build.
> >
> > Jan
>
> It works for me:
>
> Python 2.4.3 (#0, Apr  4 2006, 23:48:52) [MSC v.1201 32 bit (Unknown)] on
> Pocket PC
> >>> float("2.2")
> 2.2000000000000002
>
> What error do you get?
>
> Luke
>
> >
> > Luke Dunstan schrieb:
> >> A new release of Python for Windows CE is available. Download it here:
> >>
> >> http://sourceforge.net/project/showfiles.php?group_id=104228
> >>
> >> The release notes are linked from this page, but a direct link is:
> >>
> >> http://sourceforge.net/project/shownotes.php?release_id=407232&group_id=104228
> >>
> >>
> >> Luke
> >> _______________________________________________
> >> PythonCE mailing list
> >> [email protected]
> >> http://mail.python.org/mailman/listinfo/pythonce
> >>
> >>
> >>
> >
> >
> _______________________________________________
> PythonCE mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/pythonce
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.