when you import gtk, setlocale is called (it is required for use with
Asian languages). I guess your locale doesn't use the dot for decimal
points. To force the use of normal C number formats, set the environment
variable LC_NUMERIC to C:
export LC_NUMERIC=C
This will tell the any locale aware code to use normal C conventions for
parsing numeric values, while still letting messages from programs get
translated.
James Henstridge.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
On Tue, 23 Feb 1999, Aaron Optimizer Digulla wrote:
> Quoting Andreas Degert <[EMAIL PROTECTED]>:
>
> > Hello,
> >
> > can anyone confirm this or have an idea what is happening?
> >
> > ~$ LANG=en_US python
> > Python 1.5.1 (#1, Jun 18 1998, 12:39:25) [GCC 2.7.2.3] on linux2
> > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> > >>> import gtk
> > >>> float('0')
> > Traceback (innermost last):
> > File "<stdin>", line 1, in ?
> > ValueError: float() literal too large: 0
>
> Same here (SuSE Linux 6.0, glibc2 based) with Python 1.5.2b1 and 1.5.2b2.
> Interesting enough, it happens only *after* gtk has been imported (the
> value of LANG doesn't matter here).
>
> --
> Dipl. Inf. (FH) Aaron "Optimizer" Digulla Assistent im BIKS Labor, FB WI
> "(to) optimize: Make a program faster by FH Konstanz, Brauneggerstr. 55
> improving the algorithms rather than by Tel:+49-7531-206-514
> buying a faster machine." EMail: [EMAIL PROTECTED]
> To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]
>
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]