New submission from Devin Jeanpierre: >>> [] = () >>> () = [] File "<stdin>", line 1 SyntaxError: can't assign to ()
This contradicts the assignment grammar, which would make both illegal: https://docs.python.org/3/reference/simple_stmts.html#assignment-statements ---------- components: Interpreter Core messages: 234324 nosy: Devin Jeanpierre priority: normal severity: normal status: open title: Can assign [] = (), but not () = [] type: behavior _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23275> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com