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

Created on 2010-08-31 22:29 by ncoghlan, last changed 2010-09-03 16:12 by eric.araujo.

Messages (1)
msg115281 - (view) Author: Nick 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)
History
Date User Action Args
2010-09-03 16:12:57eric.araujosetnosy: + lemburg, loewis
2010-08-31 22:29:14ncoghlancreate