[issue2292] Missing *-unpacking generalizations

Neil Girdhar report at bugs.python.org
Mon Jan 26 17:42:00 CET 2015


Neil Girdhar added the comment:

Is this correct?

>>> f(*i for i in ['abc', 'def'])
['a', 'b', 'c', 'd', 'e', 'f'] []
>>> f(**i for i in ['abc', 'def'])
  File "<stdin>", line 1
    f(**i for i in ['abc', 'def'])
            ^
SyntaxError: invalid syntax

Should neither work?  Both?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2292>
_______________________________________


More information about the Python-bugs-list mailing list