Live data from Hacker News

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

bugs.python.org

51–53 of 53 posts

Re: Python bug: Can assign [] = (), but not () = []

#51
post #50

I can also do this, which is harmful. >>> True = False >>> False = True

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.
Post reply on HN