En Tue, 06 Mar 2007 06:15:03 -0300, Ayaz Ahmed Khan <[EMAIL PROTECTED]> escribió:
> "[EMAIL PROTECTED]" 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 -- http://mail.python.org/mailman/listinfo/python-list