checking if a list is empty
Terry Reedy
tjreedy at udel.edu
Sat May 14 17:29:53 EDT 2011
More information about the Python-list mailing list
Sat May 14 17:29:53 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 5/14/2011 1:43 PM, rusi wrote: > But it seems you did not get the moral? Spelt out: "Beware of lossy > compression!" > [Which is also the moral of my 'proof'] I get it now. As I suggested in response to Stephen, [] and [1] spell False and True only in boolean contexts (if/while headers) where they are implicitly wrapped with a bool() call, which is to say, where their boolean value is extracted from them. As you point out, there is information loss as all other context-irrelevant details are ignored. -- Terry Jan Reedy
- 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