[issue7008] str.title() misbehaves with apostrophes
report at bugs.python.org
Sun Sep 27 19:23:26 CEST 2009
New submission from Nick Devenish <N.e.devenish at sussex.ac.uk>:
str.title() capitalizes the first letter after an apostrophe:
>>> "This isn't right".title()
"This Isn'T Right"
The library function string.capwords, which appears to have exactly the
same responsibility, doesn't exhibit this behavior:
>>> string.capwords("This isn't right")
"This Isn't Right"
Tested on 2.6.2 on Mac OS X
title: str.title() misbehaves with apostrophes
versions: Python 2.6
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list