[issue21964] inconsistency in list-generator comprehension with yield(-from)
STINNER Victor
report at bugs.python.org
Mon Jul 21 22:12:38 CEST 2014
STINNER Victor added the comment:
> For `g1`: it returns a generator because the listcomp contains a `yield from`.
IMO it's a bug: [... for ... in ...] must create a list.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21964>
_______________________________________
More information about the Python-bugs-list
mailing list