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: string.letters should display locale based equivalent of a-Z
Type: Stage: resolved
Components: Library (Lib) Versions: Python 2.7, Python 2.6, Python 2.5
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: antlong, loewis, r.david.murray
Priority: normal Keywords:

Created on 2010-07-23 03:27 by antlong, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (4)
msg111238 - (view) Author: Anthony Long (antlong) Date: 2010-07-23 03:27
string.letters should display the locale based equivalent of a-Z.

In enUS this would be a-z A-Z, in total a len of 52, whereas in spain it would be a-z (with  ñ), and A-Z (Ñ).

Each locale should change the returned letters.

http://en.wikipedia.org/wiki/Keyboard_layout
msg111315 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-07-23 13:26
This would involve too much of a behavior change to be introduced in a point release.  string.letters does not exist in py3k.  Closing as out of date.
msg111438 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2010-07-24 09:53
Actually, in Python 2.x, string.letters *does* contain the letters based on the locale. Just make sure to call locale.setlocale.
msg111485 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2010-07-24 14:39
Ah, right.  I was misled by examples from another ticket and did not verify.
History
Date User Action Args
2022-04-11 14:57:04adminsetgithub: 53582
2010-07-24 14:39:06r.david.murraysetmessages: + msg111485
2010-07-24 09:53:36loewissetnosy: + loewis
messages: + msg111438
2010-07-23 13:26:48r.david.murraysetstatus: open -> closed

nosy: + r.david.murray
messages: + msg111315

resolution: out of date
stage: resolved
2010-07-23 03:27:52antlongcreate