homepage

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 method title() produces incorrect resutls
Type: Stage: resolved
Components: Interpreter Core Versions: Python 2.6
process
Status: closed Resolution: duplicate
Dependencies: Superseder: str.title() misbehaves with apostrophes
View: 7008
Assigned To: Nosy List: ezio.melotti, mesheb82, r.david.murray
Priority: normal Keywords:

Created on 2012年08月24日 00:52 by mesheb82, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Messages (3)
msg168969 - (view) Author: mesheb82 (mesheb82) Date: 2012年08月24日 00:52
I got unexpected results when working with a string that has an apostrophe in it.
"Joe's".title()
>> "Joe'S"
'Joe"s'.title()
>> 'Joe"S'
msg168970 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2012年08月24日 00:55
This is a known "issue", see http://docs.python.org/library/stdtypes.html#str.title 
msg168972 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2012年08月24日 01:30
This is a duplicate of issue 7008. See also issue 6412, which offers some small hope that some day there may be an algorithm that can fix this.
History
Date User Action Args
2022年04月11日 14:57:35adminsetgithub: 59978
2012年08月24日 01:30:01r.david.murraysetstatus: open -> closed

superseder: str.title() misbehaves with apostrophes

nosy: + r.david.murray
messages: + msg168972
resolution: duplicate
stage: resolved
2012年08月24日 00:55:33ezio.melottisetnosy: + ezio.melotti
messages: + msg168970
2012年08月24日 00:52:18mesheb82create

AltStyle によって変換されたページ (->オリジナル) /