[issue46865] *() Invalid Syntax: iterable unpacking of empty tuple

Serhiy Storchaka report at bugs.python.org
Sat Feb 26 04:07:18 EST 2022


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

It is an invalid syntax. Write foo(*((stri,) if stri else ())).

----------
nosy: +serhiy.storchaka
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46865>
_______________________________________


More information about the Python-bugs-list mailing list