Suggestions for 2002

Raymond Hettinger othello at
Wed Jan 16 03:47:39 CET 2002

"Chris Tavares" <christophertavares at> wrote in message
news:Scd08.26893$Vz3.2744736 at
> "Raymond Hettinger" <othello at> wrote in message
> news:a1qqpd$kvp$1 at
> [... snip ...]
> > ----------------
> > Suggestion #2:  Add new built-in functions:  xmap, xfilter, and xzip.
> >
> For what it's worth, there's already an xmap implementation in C in one of
> the mxTools packages - I'm not sure which one it ended up in when Marc
> reorganized. I wrote it quite a while ago (back in the 1.4 timeframe I
> think).
> -Chris

If it was written in the pre-generator days, would it use __getitem__(self,
to create something iterable?  Also, does it consume its inputs lazily?

I'm especially interested in knowing whether people like and use your
function from mxTools.  If there is much interest, it might be time for
a generator version and to extend the result to xfilter() and xzip().

Raymond Hettinger

More information about the Python-list mailing list