Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79369 > unrolled thread
| Started by | Albert-Jan Roskam <fomcl@yahoo.com> |
|---|---|
| First post | 2014-10-20 13:33 -0700 |
| Last post | 2014-10-20 13:33 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
real-life example LC_CTYPE effects? Albert-Jan Roskam <fomcl@yahoo.com> - 2014-10-20 13:33 -0700
| From | Albert-Jan Roskam <fomcl@yahoo.com> |
|---|---|
| Date | 2014-10-20 13:33 -0700 |
| Subject | real-life example LC_CTYPE effects? |
| Message-ID | <mailman.15028.1413875478.18130.python-list@python.org> |
Hi,
The locale category LC_CTYPE may affect character classification and case conversion.
That's the theory. Can you give a practical example where this locale setting matters? Eg.:
locale.setlocale(locale.LC_CTYPE, loc)
m = re.match("\d+", s, re.I | re.L)
So with two different values for loc, and s is identical, there will or won't be a match.
Thanks!
Albert-Jan
Back to top | Article view | comp.lang.python
csiph-web