Message234361
| 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
>>> |
|