homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add callbacks to be invoked when locale changes
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.2
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: BreamoreBoy, lemburg, loewis, ncoghlan
Priority: normal Keywords:

Created on 2010年08月31日 22:29 by ncoghlan, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Messages (4)
msg115281 - (view) Author: Alyssa Coghlan (ncoghlan) * (Python committer) Date: 2010年08月31日 22:29
As part of the PEP 384 discussion, it was noted that one of the problems with mixed C runtimes on Windows is that each C runtime in the process has it's own idea of the current locale setting.
This can be addressed to some degree by having extension modules query and modify the Python interpreter's locale setting rather than the C runtime setting, but doesn't help those modules react to *changes* in the setting.
Would it be worth adding a callback registration mechanism to the locale module to allow modules to be notified when the locale changes? (It seems like this may be useful even outside the context of PEP 384, e.g. to dynamically update displays in GUI applications)
msg220851 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014年06月17日 18:22
@Nick is this something you'd like to pick up on, and are there any other Windows gurus who should be added to the nosy list?
msg220900 - (view) Author: Alyssa Coghlan (ncoghlan) * (Python committer) Date: 2014年06月17日 21:42
It ended up there were more serious problems with mixing runtimes on
Windows (especially around file descriptors), so this likely wouldn't help
much in practice.
msg220922 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2014年06月18日 06:16
Closing as won't fix, then.
History
Date User Action Args
2022年04月11日 14:57:05adminsetgithub: 53936
2014年06月18日 06:16:34loewissetstatus: open -> closed
resolution: wont fix
messages: + msg220922
2014年06月17日 21:42:35ncoghlansetmessages: + msg220900
2014年06月17日 18:22:14BreamoreBoysetnosy: + BreamoreBoy
messages: + msg220851
2010年09月03日 16:12:57eric.araujosetnosy: + lemburg, loewis
2010年08月31日 22:29:14ncoghlancreate

AltStyle によって変換されたページ (->オリジナル) /