Closed galou closed 8 years ago
In Python's list comprehension ([v for v in mylist]), for gets exanded to for : and a newline is added. This is not the expected behavior. The same applies for a = b if b else 0.
[v for v in mylist]
for
for :
a = b if b else 0
Oh. My mistake. There is indeed a bug, and my snippets should not be shipped with lh-brackets.
In Python's list comprehension (
[v for v in mylist]
),for
gets exanded tofor :
and a newline is added. This is not the expected behavior. The same applies fora = b if b else 0
.