In python3 (at least on 3.8.10), star_expression in comprehension is handled as a parse error.
However, version 3 parser can parse the expression.
Although this issue may not be a big deal to parse valid python programs, I'm sure that it may be better to fix this to enhance usability of the library.
For example (AS IS)
>>> [*b for i in range(1,2)]
File "<stdin>", line 1
SyntaxError: iterable unpacking cannot be used in comprehension
>>>
Summary
In python3 (at least on 3.8.10),
star_expression
in comprehension is handled as a parse error. However, version 3 parser can parse the expression.Although this issue may not be a big deal to parse valid python programs, I'm sure that it may be better to fix this to enhance usability of the library.
For example (AS IS)