Python Tutorial Was: Guido's regrets: filter and map

Michael Hudson mwh at python.net
Tue Nov 26 05:36:00 EST 2002


Grant Edwards <grante at visi.com> writes:

> In article <arsni0$pnk$1 at news.netpower.no>, David Brown wrote:
> 
> >> I never liked filter, map and reduce.
> 
> So don't use them. ;)

It's not quite that simple of course.  If you're unlucky enough, every
now and then you read code SOMEONE ELSE wrote!

They're all fine in simple cases, but some of the most tortous Python
code I've seen invloved artificially -- and probably fruitlessly --
stuffing code into calls to map in a quest for performance.  Shudder.

Cheers,
M.

-- 
  If Unicode is a horde of zombies with flaming dung sticks, 
  the hideous intricacies of JIS, Chinese Big-5, Chinese 
  Traditional, KOI-8, et cetera are at least an army of ogres 
  with salt and flensing knives.        -- Eric S. Raymond, python-dev



More information about the Python-list mailing list