Why bool( object )?

Marco Mariani marco at sferacarta.com
Wed Apr 29 17:35:28 CEST 2009


Bruno Desthuilliers wrote:

> Lawrence D'Oliveiro a écrit :

>>> What is the rationale for considering all instances true of a user-
>>> defined type?
>>
>> It's a stupid idea, 
> 
> Nope, it's a very sensible default (given you can redefine the 
> 'nothingness' value of your types instances), specially when the 
> language doesn't have a proper boolean type (which was the case for 
> Python until 2.2 or 2.3, can't remember exactly).

Man, you've given a serious answer to a sarcastic reply to an OP who has 
been -- for years -- second in trolliness only to Xah Lee.

Either that, or I have to replace my humor detector.



More information about the Python-list mailing list