Change by Antal Nemes :
--
nosy: +furiel
___
Python tracker
<https://bugs.python.org/issue36753>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Antal Nemes :
Reproducible with current master (3.9, 151b91dfd21a100ecb1eba9e293c0a8695bf3bf5)
I would expect itertools.combinations to be lazy in the sense that it should
not exhaust the input iterator in constructor time.
import itertools;
itertools.combinations
Antal Nemes added the comment:
Thanks for sharing the discussion above. I did not know this was discussed
earlier.
Indeed, I do not come from a real world example. I ran into this problem while
solving an online coding challenge that also measures performance. I got the
right answer, just