Author Kyle.Buzsaki
Recipients Cesar.Kawakami, Devin Jeanpierre, Kyle.Buzsaki, r.david.murray, rhettinger
Date 2015-01-20.09:25:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1421745919.75.0.774207113291.issue23275@psf.upfronthosting.co.za>
In-reply-to
Content
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
>>>
History
Date User Action Args
2015-01-20 09:25:19Kyle.Buzsakisetrecipients: + Kyle.Buzsaki, rhettinger, Devin Jeanpierre, r.david.murray, Cesar.Kawakami
2015-01-20 09:25:19Kyle.Buzsakisetmessageid: <1421745919.75.0.774207113291.issue23275@psf.upfronthosting.co.za>
2015-01-20 09:25:19Kyle.Buzsakilinkissue23275 messages
2015-01-20 09:25:19Kyle.Buzsakicreate