Skip to content

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

Comments

Waaa! ... I just did that using 2.7 idle and it worked. This is new for me.

I got stuck for a while trying to back out. Finally figured the way to reverse is to use del(): del(True) del(False).

You could also do True = True == True. It's like Dorothy clicking her heels together three times.

AboutSource Built by g1lg1l

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