checking if a list is empty
Chris Angelico
rosuav at gmail.com
Sat May 14 11:55:34 EDT 2011
More information about the Python-list mailing list
Sat May 14 11:55:34 EDT 2011
- Previous message (by thread): checking if a list is empty
- Next message (by thread): checking if a list is empty
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, May 15, 2011 at 1:47 AM, rusi <rustompmody at gmail.com> wrote: > So since > [1,2,3] is one way of writing True (lets call it True3) > and [1,2] is another (call it True2) > then we have True3 == True2 is False > > But since according to Steven (according to Python?) True3 *is the > same* as True2 > we get > False > = [1,2,3] == [1,2] > = True3 == True2 > = True == True > = True Okay, I see what you're doing here. http://www.rinkworks.com/ithink/search.cgi?words=compress When you condense a whole lot of information down to just two states, True and False, *obviously* there'll be a huge amount that fits into one or the other without being identical. It's not an argument for whether [1,2,3] ought to be True or ought to be False. You could make the exact same argument if they evaluated to False. You have proven nothing and just wasted your time proving it. Chris Angelico
- Previous message (by thread): checking if a list is empty
- Next message (by thread): checking if a list is empty
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list