[issue23275] Can assign [] = (), but not () = []
Rahul Gupta
report at bugs.python.org
Wed May 27 14:28:34 CEST 2015
Rahul Gupta added the comment:
isn't it logical?
[] is a mutable data structure
while () is a immutable data structure
(b, a) = [1, 2] is fine because a and b are mutable
----------
nosy: +Rahul Gupta
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23275>
_______________________________________
More information about the Python-bugs-list
mailing list