[issue23275] Can assign [] = (), but not () = []

Mark Dickinson report at bugs.python.org
Mon Apr 20 20:28:23 CEST 2015


Mark Dickinson added the comment:

> There is also no reason to break currently working code

Agreed.  To take one example, David Beazley's PyCon 2015 talk would have been broken by the suggested change!  (See https://www.youtube.com/watch?v=MCs5OvhV9S4, at around the 42:17 mark.)

If there's any code change resulting from this issue, I also think it should be to make assignment to `()` legal.

----------
nosy: +mark.dickinson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23275>
_______________________________________


More information about the Python-bugs-list mailing list