2010/6/9 Victor Subervi <[email protected]>: > Sorry, Dennis: > > var = 'colorsShort' > var[0].upper + var[1:] = 'ColorsShort' > var.capitalize() = 'Colorsshort'
"""
string.capitalize = capitalize(s)
capitalize(s) -> string
Return a copy of the string s with only its first character
capitalized.
"""
The behavior you've demonstrated is "exactly" what the documentation
says the .capitalize() method does.
--James
--
http://mail.python.org/mailman/listinfo/python-list
