[Python-ideas] Integrate some itertools into the Python syntax

Koos Zevenhoven k7hoven at gmail.com
Tue Mar 22 15:52:51 EDT 2016


If your point is that generators can sometimes be hard, then your
point is clear :-). Maybe using them should not be made to look more
straightforward than it actually is. Which brings me back to...

One thought that comes to mind is to add some stuff from itertools as
attributes of iter. For example: iter.slice(...). Kind of like a
factory method, although iter is not really a type.

 - Koos


More information about the Python-ideas mailing list