Solutions for LC_NUMERIC, was Re: [Python-Dev] Re: Be Honest about LC_NUMERIC [REPOST]

Martin v. Löwis martin at
Thu Sep 4 20:25:19 EDT 2003

Christian Reis <kiko at> writes:

>     "On glibc-based systems, Python is safe from runtime changes in the
>     LC_NUMERIC locale category. On other platforms, changing LC_NUMERIC
>     at runtime may cause float conversion routines to fail. This may
>     impact the Python interpreter internally."

I could accept such a limitation. However, I maintain that the aspects
must be fully understood, and I agree with Guido that they must be
documented in the documentation proper (i.e. as comments in the source
code, or the user documentation).

So I suggest that you proceed with the PEP and the implementation
as-is. The PEP would need to be enhanced to summarize this discussion
(perhaps listing the alternatives that you just mentioned); the patch
would need to be enhanced to be more simple, readable, and in the
style of the rest of the Python source code, and would need to include
documentation changes and test cases (although some test cases
probably already exist).


More information about the Python-Dev mailing list