Philip Jenvey added the comment:
S.capitalize() -> string
Return a copy of the string S with only its first character
capitalized.
You've misunderstood the docs, only the first character is indeed capitalized.
You want string.capwords instead
--
nosy: +pjenvey
resolution: -> invalid
New submission from Martin :
When the following is run:
s='the Los Angeles Symphony';
s.capitalize();
it displays 'The los angeles symphony'
instead of 'The Los Angeles Symphony'
the str.capitalize() should only deal with the first letter, not lower-case the
rest of the letters. The manual