[Python-Dev] map, filter, zip in future_builtins

David Wolever wolever at cs.toronto.edu
Tue Mar 18 23:13:11 CET 2008


On 18-Mar-08, at 6:01 PM, Benjamin Peterson wrote:
>> Couldn't you just import imap as map?
> What do you mean?  Import imap as map in future_builtins.c?
> Like the Python:
> import itertools
> map = intertools.map
> type(map(lambda x: x, range(3))) == map # True

Ah, that's a much better idea :P

I'll do that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20080318/72efd405/attachment.htm 


More information about the Python-Dev mailing list