Skip to content

Comment on Python bug: Can assign [] = (), but not () = []parent

Comments

Not entirely sure of your point but...

Python 3.4.0 (default, Apr 11 2014, 13:05:11)

[GCC 4.8.2] on linux

Type "help", "copyright", "credits" or "license" for more information.

>> (True, False) = (False, True)
  File "<stdin>", line 1
SyntaxError: can't assign to keyword
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.