I realized after I reported this that there's probably no good
solution, since "I'm".title() should be "I'm", but "O'Leary".title()
should be "O'Leary". So unless title() understands English, it can't
do the right thing.
--
Eric Cooper e c c @ c m u . e d u
--
To UNSUBSCRIBE, emai
Package: python2.5
Version: 2.5.2-2
Severity: normal
The title() method capitalizes letters within a word when they follow
an apostrophe:
>>> "i don't know".title()
"I Don'T Know"
>>>
This is present in python2.4 as well.
-- System Information:
Debian Release: lenny/sid
APT prefers
2 matches
Mail list logo