GTK breaks float! (related to "float does not parse 0.00000E+00")
jepler epler
jepler.lnk at lnk.ispi.net
Wed Jun 7 19:21:36 EDT 2000
On 06 Jun 2000 16:32:40 +0100, Michael Hudson
<mwh21 at cam.ac.uk> wrote:
>My money's on so bizzarre interaction with libc, myself.
I'm guessing that 'import gnome.ui' sets the locale, including the
numeric format:
$ env LC_NUMERIC=en_US python -c 'import gnome.ui; print float("1.1")'
1.1
$ env LC_NUMERIC=de_DE python -c 'import gnome.ui; print float("1.1")'
Traceback (innermost last):
File "<string>", line 1, in ?
Value Error: invalid literal for float(): 1.1
Jeff
More information about the Python-list
mailing list