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!? And I don't find `list(False)` to return an empty list be very obvious. > I guess the problem is that if list(False) was thus defined, it would be > difficult not to define list(True). And then the zen of Python clashes > > "In the presence of ambiguity, refuse the temptation to guess". > > OTOH, my favorite there would be > > list(True) is [None] Wow it even gets better, the list containing one `None` object should be a singleton too. Argh. Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list