Kyle Buzsaki added the comment:

It seems that assigning to [] is the odd one out in this case. Why is this even 
possible?

>>> [] = ()
>>> [] = {}
>>> [] = set()
>>> list() = ()
  File "<stdin>", line 1
SyntaxError: can't assign to function call
>>> () = []
  File "<stdin>", line 1
SyntaxError: can't assign to ()
>>> {} = []
  File "<stdin>", line 1
SyntaxError: can't assign to literal
>>> set() = []
  File "<stdin>", line 1
SyntaxError: can't assign to function call
>>>

----------
nosy: +Kyle.Buzsaki

_______________________________________
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

Reply via email to