Newbie question

Ayaz Ahmed Khan ayaz at dev.slash.null
Tue Mar 6 10:15:03 CET 2007


"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).

-- 
Ayaz Ahmed Khan

Falling in love makes smoking pot all day look like the ultimate in
restraint.
                -- Dave Sim, author of "Cerebus".



More information about the Python-list mailing list