New submission from Nick Devenish <n.e.deven...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue7008> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com