Newbie question

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Mar 6 05:37:38 EST 2007


En Tue, 06 Mar 2007 06:15:03 -0300, Ayaz Ahmed Khan <ayaz at dev.slash.null>  
escribió:

> "Joshua.R.English at gmail.com" typed:
>>> Tommy Grav schrieb:
>>> For this case, there are list comprehensions (or map, but you shouldn't
>>> use it any longer):
>>
>> I didn't see anything in the docs about this.  Is map going away or is
>> it considered un-Pythonic now?
>
> Most everywhere I've read about map() and filter() seemed to
> discourage their use stating that they're becoming depreciated (with the
> exception of Dive Into Python which advocates use of these two functions
> in preference to even list comprehensions, if I've read it properly).

reduce() will disappear on Python 3.0; map and filter may stay.
See http://www.python.org/dev/peps/pep-3100/ and  
http://www.artima.com/weblogs/viewpost.jsp?thread=98196

-- 
Gabriel Genellina




More information about the Python-list mailing list