Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add callbacks to be invoked when locale changes #53936

Closed
ncoghlan opened this issue Aug 31, 2010 · 4 comments
Closed

Add callbacks to be invoked when locale changes #53936

ncoghlan opened this issue Aug 31, 2010 · 4 comments
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@ncoghlan
Copy link
Contributor

BPO 9727
Nosy @malemburg, @loewis, @ncoghlan

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2014-06-18.06:16:34.977>
created_at = <Date 2010-08-31.22:29:14.863>
labels = ['type-feature', 'library']
title = 'Add callbacks to be invoked when locale changes'
updated_at = <Date 2014-06-18.06:16:34.975>
user = 'https://github.com/ncoghlan'

bugs.python.org fields:

activity = <Date 2014-06-18.06:16:34.975>
actor = 'loewis'
assignee = 'none'
closed = True
closed_date = <Date 2014-06-18.06:16:34.977>
closer = 'loewis'
components = ['Library (Lib)']
creation = <Date 2010-08-31.22:29:14.863>
creator = 'ncoghlan'
dependencies = []
files = []
hgrepos = []
issue_num = 9727
keywords = []
message_count = 4.0
messages = ['115281', '220851', '220900', '220922']
nosy_count = 4.0
nosy_names = ['lemburg', 'loewis', 'ncoghlan', 'BreamoreBoy']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue9727'
versions = ['Python 3.2']

@ncoghlan
Copy link
Contributor Author

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)

@ncoghlan ncoghlan added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Aug 31, 2010
@BreamoreBoy
Copy link
Mannequin

BreamoreBoy mannequin commented Jun 17, 2014

@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?

@ncoghlan
Copy link
Contributor Author

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.

@loewis
Copy link
Mannequin

loewis mannequin commented Jun 18, 2014

Closing as won't fix, then.

@loewis loewis mannequin closed this as completed Jun 18, 2014
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant