Issue 9727: Add callbacks to be invoked when locale changes (original) (raw)
Issue9727
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.
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/53936
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) * ![]() |
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) * ![]() |
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) * ![]() |
Date: 2014-06-18 06:16 |
Closing as won't fix, then. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:05 | admin | set | github: 53936 |
2014-06-18 06:16:34 | loewis | set | status: open -> closedresolution: wont fixmessages: + |
2014-06-17 21:42:35 | ncoghlan | set | messages: + |
2014-06-17 18:22:14 | BreamoreBoy | set | nosy: + BreamoreBoymessages: + |
2010-09-03 16:12:57 | eric.araujo | set | nosy: + lemburg, loewis |
2010-08-31 22:29:14 | ncoghlan | create |