capitalize() NOT the same as var[0].upper _ var[1:]

Victor Subervi victorsubervi at gmail.com
Tue Jun 8 14:04:41 EDT 2010


Sorry, Dennis:

var = 'colorsShort'
var[0].upper + var[1:] = 'ColorsShort'
var.capitalize() = 'Colorsshort'

beno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100608/f1850cbe/attachment.html>


More information about the Python-list mailing list