[issue19423] permutations len issue
Amaury Forgeot d'Arc
report at bugs.python.org
Mon Oct 28 18:22:39 CET 2013
Amaury Forgeot d'Arc added the comment:
permutations() returns a generator.
If you consume it with list(), the second time will return the empty list.
Use list(permutations(...)) if you plan to use the result multiple times.
----------
nosy: +amaury.forgeotdarc
resolution: -> invalid
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19423>
_______________________________________
More information about the Python-bugs-list
mailing list