GTK breaks float! (related to "float does not parse 0.00000E+00")

Michael Hudson mwh21 at cam.ac.uk
Wed Jun 7 19:27:31 EDT 2000


jepler.lnk at lnk.ispi.net (jepler epler) writes:

> 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

$ env LC_NUMERIC=de_DE python -c 'import gnome.ui; print float("1.1")'

Gdk-WARNING **: shmget failed!
1.1

Versions?

Cheers,
M.

-- 
  Programming languages should be designed not by piling feature on
  top of  feature, but by removing the  weaknesses and restrictions
  that make the additional features appear necessary.
               -- Revised(5) Report on the Algorithmic Language Scheme



More information about the Python-list mailing list