Message93180
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 |
|
Date |
User |
Action |
Args |
2009-09-27 17:23:26 | nickd | set | recipients:
+ nickd |
2009-09-27 17:23:26 | nickd | set | messageid: <1254072206.87.0.820338448521.issue7008@psf.upfronthosting.co.za> |
2009-09-27 17:23:25 | nickd | link | issue7008 messages |
2009-09-27 17:23:25 | nickd | create | |
|