[issue23275] Can assign [] = (), but not () = []
Martin Panter
report at bugs.python.org
Tue Apr 26 07:23:17 EDT 2016
Martin Panter added the comment:
Okay I’ll let Berker update his patch, but I’m happy to try my hand at updating the documentation if needed.
I reviewed the current patch. I can’t say whether the ast.c change is good or not. But IMO the test would be better off in somewhere like /Lib/test/test_unpack.py. It is only a superficial relationship with tuples because the syntax looks the same. Also may be worth testing that [] = [] etc work as well.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23275>
_______________________________________
More information about the Python-bugs-list
mailing list