Lawrence D'Oliveiro a écrit : > In message <[EMAIL PROTECTED]>, Georg Brandl wrote: > > (snip)
>>Other than in PHP, Python has clear rules when an object of a builtin type >>is considered false (i.e. when it's empty). So why not take advantage of >>this? > > Because the clearest rule of all is that True is true, and False is false, > and that's all I want to have to remember. I somewhat agree with Laura Craighton (cf Donn's post above in this thread). Things were clearer when there was no boolean type in Python, and we just had the difference between 'nothing' (empty sequence, zero numeric, None) and 'something' (almost anything else). -- http://mail.python.org/mailman/listinfo/python-list