checking if a list is empty

Chris Angelico rosuav at gmail.com
Sat May 14 09:42:45 EDT 2011


On Sat, May 14, 2011 at 5:45 PM, rusi <rustompmody at gmail.com> wrote:
> And then we get the interesting result that
> (True = True) is False

How does this work? In Python, the = sign is illegal there, and if you
mean True == True, then it's True (obviously), which is not False.

Chris Angelico



More information about the Python-list mailing list