[Python-ideas] Allow specifying list of functions to `map`
Ram Rachum
ram.rachum at gmail.com
Sun Mar 30 19:59:27 CEST 2014
If `map` accepted a tuple for its first argument, things like this:
stdout, stderr = map(str.strip, map(bytes.decode, popen.communicate()))
Could become this:
stdout, stderr = map((bytes.decode, str.strip), popen.communicate())
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140330/f844b68c/attachment.html>
More information about the Python-ideas
mailing list