Fwd: no string.downer() ?

Vistro vistro at vistro.net
Wed Aug 27 21:23:23 EDT 2008


---------- Forwarded message ----------
From: Vistro <vistro at vistro.net>
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 <sjmachin at lexicon.net> wrote:

> On Aug 28, 9:53 am, Terry Reedy <tjre... at udel.edu> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080827/bd0d4c15/attachment-0001.html>


More information about the Python-list mailing list