[Tutor] Operating in Place

Wayne Werner waynejwerner at gmail.com
Tue Sep 28 22:17:15 CEST 2010

On Tue, Sep 28, 2010 at 3:03 PM, Corey Richardson <kb1pkl at aim.com> wrote:

>  Hello tutors.
> I hate doing this:
>            string = string.lower()
> Is there a way to do it without the "string =" part? Thanks.

Not with a string. I suppose if you had your own class you could create
something, but you'd be doing the same thing behind the scenes.

Is there any particular reason why you don't like doing it? It's explicit
and easy to understand - saying that you want the lowercase version of the
string, but you don't care about the original string.

At least that's my take on it,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100928/d68c9f60/attachment.html>

More information about the Tutor mailing list