3 ms·
You could always use izip: http://docs.python.org/2/library/itertools.html#itertools.izip http://docs.python.org/2/library/itertools.html#itertools.iz...
by kroger 13y ago
You could always use izip:
http://docs.python.org/2/library/itertools.html#itertools.izip http://docs.python.org/2/library/itertools.html#itertools.iz...
- deleted 13y ago[deleted]
- signed0 13y agoI was a bit wrong about that. For some reason I imagined that there would be quite a few args being passed to zip, when in fact there are just the three iterators. It does create a temporary list, but it's so small it's negligible. Using izip wouldn't really change anything.