[issue7008] str.title() misbehaves with apostrophes
Nick Devenish
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
----------
messages: 93180
nosy: nickd
severity: normal
status: open
title: str.title() misbehaves with apostrophes
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7008>
_______________________________________
More information about the Python-bugs-list
mailing list