In article <[EMAIL PROTECTED]>,
 Steve Holden <[EMAIL PROTECTED]> wrote:

> Anoop wrote:
> > Thanks Stefen
> > 
> > let me be more specific how would i have to write the following
> > function in the deprecated format
> > 
> > map(string.lower,list)
> > 
> To avoid the deprecated usage you would use the unbound method of the 
> str type (that's the type of all strings):
> 
>   >>> lst = ['Steve', 'Holden']
>   >>> map(str.lower, lst)
> ['steve', 'holden']

Oh, excellent - the string module is dead, long live
the string module!  I can replace string.join with
str.join, and never have to defile my code with that
' '.join(x) abomination.


   Donn Cave, [EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to