Steve Dower <steve.do...@python.org> added the comment:

I think this should be opt-in, not opt-out.

Imagine you're an existing application and you want to embed Python. Why would 
you ever want it to suddenly change your global settings like this?

As a general rule, an embedded Python runtime should deal with all the settings 
it's been provided and not forcibly change *any* of them (though maybe the 
embedding application will discover bugs and have to update their entire 
application to deal with it - or switch to a language that isn't so demanding!).

For this specific case, it seems just as easy to opt-in by calling 
setlocale(LC_CTYPE, "") before initializing Python. We can recommend this in 
docs and do it ourselves in Py_Main, but I don't see why we'd add a specific 
option for configuring the user's C runtime.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36945>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to