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 -- http://mail.python.org/mailman/listinfo/python-list