A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-September/037900.html below:

[Python-Dev] Re: Be Honest about LC_NUMERIC [REPOST]

[Python-Dev] Re: Be Honest about LC_NUMERIC [REPOST] [Python-Dev] Re: Be Honest about LC_NUMERIC [REPOST]Martin v. Löwis martin at v.loewis.de
Mon Sep 1 22:36:59 EDT 2003
Guido van Rossum <guido at python.org> writes:

> Here's yet another idea (which probably has flaws as well): instead of
> substituting the locale's decimal separator, rewrite strings like
> "3.14" as "314e-2" and rewrite strings like "3.14e5" as "314e3", then
> pass to strtod(), which assigns the same meaning to such strings in
> all locales.

Unfortunately, that doesn't work for sprintf, for which you still need
to replace the radixchar.

Regards,
Martin

More information about the Python-Dev 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