A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/077216.html below:

[gtk] troubles with string -> float conversion

[gtk] troubles with string -> float conversion [gtk] troubles with string -> float conversionSteve Purcell stephen_purcell at yahoo.com
Wed Apr 18 05:54:38 EDT 2001
L'Ordinateur du Particulier wrote:
> i have some problems with string to float conversion in python
> 
> before importing gtk module, the string "6.6" is converted into float
> without problem, but after the gtk module has been imported,
> the syntax "6.6" is invalid, python's waiting "6,6" ...
> 
> the float() function seems to have been overwritten !?
> 
> is there a way to choose which decimal separator to use ?


You need to tell us what versions of Python and PyGTK you're using.

The 'gtk' module appears to do some locale initialisation; maybe it interacts
with the global locale if you're using Python 2.x. You would need to look
at the C source code for the _gtk module because that's where the local
initialisation is done.

-Steve

-- 
Steve Purcell, Pythangelist
Get testing at http://pyunit.sourceforge.net/
Any opinions expressed herein are my own and not necessarily those of Yahoo


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4