Issue 1212195: str.lower() to have an IMPORTANT NOTE or it's for magicians (original) (raw)
Issue1212195
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/42036
classification
Title: | str.lower() to have an IMPORTANT NOTE or it's for magicians | |
---|---|---|
Type: | Stage: | |
Components: | Documentation | Versions: |
process
Status: | closed | Resolution: | |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | lemburg | Nosy List: | doerwalter, lemburg, nkour, pterk, rhettinger |
Priority: | normal | Keywords: |
Created on 2005-05-31 18:56 by nkour, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Messages (6) | ||
---|---|---|
msg25450 - (view) | Author: Nikos Kouremenos (nkour) | Date: 2005-05-31 18:56 |
lower() {maybe others} should mention that if used with string object [not unicode object] it's likely the that encoding will change unde some locales [eg pl_PL makes it from utf8 to latin2]!! or this hsould be put in the beginning of the doc in str as a general WARNING/NOTE: | ||
msg25451 - (view) | Author: Raymond Hettinger (rhettinger) * ![]() |
Date: 2005-06-01 21:43 |
Logged In: YES user_id=80475 Mark, do you have any thoughts on this one? | ||
msg25452 - (view) | Author: Marc-Andre Lemburg (lemburg) * ![]() |
Date: 2005-06-02 11:48 |
Logged In: YES user_id=38388 A doc-patch would be nice. I don't like the general situation either. Unicode doesn't behave like this and I don't think string.lower() and .upper() should either, but there are users out there who think differently, so we might want to add a parameter which then allows modifying the type of mapping: string.lower(map='ascii') string.upper(map='latin-1') etc. Just an idea. PS: I'll be offline for two weeks now, so don't expect any more comments before then. | ||
msg25453 - (view) | Author: Peter van Kampen (pterk) | Date: 2005-06-25 22:05 |
Logged In: YES user_id=174455 I tried to come up with a doc-patch: https://sourceforge.net/tracker/index.php?func=detail&aid=1227545&group_id=5470&atid=305470 | ||
msg25454 - (view) | Author: Walter Dörwald (doerwalter) * ![]() |
Date: 2005-08-31 16:52 |
Logged In: YES user_id=89016 I'd like to see an example that shows this change from utf8 to latin2. | ||
msg25455 - (view) | Author: Marc-Andre Lemburg (lemburg) * ![]() |
Date: 2005-08-31 20:43 |
Logged In: YES user_id=38388 Closing the bug report. Please see follow-ups on the doc-patch. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:11 | admin | set | github: 42036 |
2005-05-31 18:56:01 | nkour | create |