Marc 'BlackJack' Rintsch wrote:
> In <[EMAIL PROTECTED]>, Boris Borcic wrote:
> 
>> Bruno Desthuilliers wrote:
>>> empty_list = []
>>> bool(empty_list) is False
>>> => True
>> it's just a pity that the symmetric expression
>>
>> list(False) is []
>>
>> doesn't hold.
> 
> You want the empty list to be a singleton!?

Oops,

list(False) == [], then.

BTW, be careful with 'singleton' when applying to aggregates - it took me a 
while to figure out you did not mean an obj X s.t. len(X)==1.


>  And I don't find
> `list(False)` to return an empty list be very obvious.

What would be your choice ?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to