In python 3.5.5 interpreter, this seems valid
>>> [] = ()
>>>
While this throws a SyntaxError
>>> () = []
File "<stdin>", line 1
SyntaxError: can't assign to ()
>>>
Why is the first statement valid and what does it mean ?
Why is the second one invalid ?
dis does not give a lot of informations:
dis.dis('[] = ()') 1 0 BUILD_TUPLE 0
3 UNPACK_SEQUENCE 0
6 LOAD_CONST 0 (None)
9 RETURN_VALUE