On Fri, 23 Dec 2005 23:51:22 +0200, Max wrote:

> Steven D'Aprano wrote:
>> 
>>>They certainly don't look much further from being integers than
>>>booleans do. 
>> 
>> 
>> You think?
>> 
>> hamburger, steak, fish, chicken, pizza
>> 
>> What meaning do you give to steak**fish? Should that meaning change if I
>> happened to have written pizza first instead of last?
> 
> What meaning do you give to True**False?

Given that True == 1 and False == 0 in Python (which in my opinion is
unfortunate), then it is obviously 1.

True booleans don't support arithmetic operators like **, and neither
should enums.



-- 
Steven.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to