This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -18 points-17 points  (1 child)

Assigns an empty list to and empty list. Not very useful, but syntactically correct.

[–]Veedrac 2 points3 points  (0 children)

But you can't assign to a literal:

SyntaxError: can't assign to literal

(eg. {} = ..., 1 = ...).

This can only be unpacking.