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

Johann Hibschman johann at physics.berkeley.edu
Tue Jun 6 13:10:23 EDT 2000


Paolo Redaelli writes:

> Look at the this short program:
> =======
> #!/usr/bin/env python

> s = "0.000000E+00"
> print "Converting",s," into: ", float(s)
> print "Importing gtk"

> import GDK
> from gtk import *
> from gnome.ui import *
> import GdkImlib
> print "Converting",s," into: ", float(s)


Try the following, just to find out if float is being redefined.

>>> import GTK
>>> import gtk
>>> import gnome.ui
>>> 
>>> for module in [GTK, gtk, gnome.ui]:
...   if 'float' in dir(module): print module

and see if it comes up with anything.

I don't have this problem, but perhaps it's a gnome.ui locale issue.

-- 
Johann Hibschman                           johann at physics.berkeley.edu



More information about the Python-list mailing list