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

2010-06-10 Thread geremy condra
On Wed, Jun 9, 2010 at 2:10 PM, Dan Stromberg wrote: > > > On Tue, Jun 8, 2010 at 7:09 PM, alex23 wrote: >> >> I'm amazed at the endless willingness of this group to help Victor >> write his contracted project for free. >> > I don't get it.  What's wrong with helping people?  And what's it to you

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

2010-06-09 Thread Dan Stromberg
On Tue, Jun 8, 2010 at 7:09 PM, alex23 wrote: > > I'm amazed at the endless willingness of this group to help Victor > write his contracted project for free. > > I don't get it. What's wrong with helping people? And what's it to you if others do? -- http://mail.python.org/mailman/listinfo/pyth

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

2010-06-08 Thread alex23
James Mills wrote: > The behavior you've demonstrated is "exactly" what the documentation > says the .capitalize() method does. Look on the plus side, at least it's not yet another question on SQL parameters & Python string substitutions. I'm amazed at the endless willingness of this group to he

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

2010-06-08 Thread James Mills
2010/6/9 Victor Subervi : > 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. """ Th

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

2010-06-08 Thread Victor Subervi
Sorry, Dennis: var = 'colorsShort' var[0].upper + var[1:] = 'ColorsShort' var.capitalize() = 'Colorsshort' beno -- http://mail.python.org/mailman/listinfo/python-list