[Python-ideas] Another attempt at a sum() alternative: the concatenation protocol

Serhiy Storchaka storchaka at gmail.com
Tue Jul 16 19:34:16 CEST 2013


16.07.13 16:01, Nick Coghlan написав(ла):
> In effect, PEP 448 goes further than making chain a builtin: it gives
> it syntax! With PEP 448, the generator expression:
>
>      (*itr for itr in iterables)
>
> would be equivalent to either of the current:
>
>      itertools.chain(*iterables)
>      itertools.chain.from_iterable(iterables)

This looks as an argument against PEP 448. Why we need a new syntax if 
we can do this just with existent function?




More information about the Python-ideas mailing list