---------- Forwarded message ----------
From: Vistro <[EMAIL PROTECTED]>
Date: Wed, Aug 27, 2008 at 7:43 PM
Subject: Re: no string.downer() ?

(Hopefully this one makes its way to the list...)

I usually use this

If take the string that needs to be converted to lowercase, (should have a
variable, in this case, s)

then

s.lower()

Works every time!


On Wed, Aug 27, 2008 at 7:28 PM, John Machin <[EMAIL PROTECTED]> wrote:

> On Aug 28, 9:53 am, Terry Reedy <[EMAIL PROTECTED]> wrote:
> > ssecorp wrote:
> > > if i want to make a string downcase, is upper().swapcase() the onyl
> > > choice? there is no downer() ?
> >
> > If you are not being a troll, there are two easy ways to answer such a
> > question.
> >
>
> [snip]
>
> Reading the manual backwards as the OP seems to have done ("upper",
> "swapcase", ...) one finds:
>
> """
> swapcase( )
>
> Return a copy of the string with uppercase characters converted to
> lowercase and vice versa.
> """
>
> Out of the possible diagnoses (trolling, incredible stupidity, feeble
> joke attempt) of the cause of the ensuing upper/downer question, I'm
> going with the third.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to