[Python-ideas] Tuple Comprehensions

Christopher King g.nius.ck at gmail.com
Tue Oct 18 01:57:55 CEST 2011


>
> >>> import operator
> >>> xs=['banana', 'loganberry', 'passion fruit']
> >>> reduce(operator.concat,(x.**strip() for x in xs))

To long for something so simple
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20111017/a3bb9a2d/attachment.html>


More information about the Python-ideas mailing list