[Tutor] Operating in Place
Steven D'Aprano
steve at pearwood.info
Tue Sep 28 23:56:47 CEST 2010
On Wed, 29 Sep 2010 06:12:20 am Shashwat Anand wrote:
> On Wed, Sep 29, 2010 at 1:33 AM, 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.
>
> 1. string is a module which is deprecated. You should probably use
> str or s in your example.
Actually, in this case Corey is not using the string module, but is
using string as the name of a variable.
--
Steven D'Aprano
More information about the Tutor
mailing list