Lawrence D'Oliveiro wrote:
>>>> if y[0]:
>>> Not a good idea.
>> Why not?
> 
> Because there is a situation where your version of the test will fail even
> if the first element of y is non-null.

Such as? Seriously people, a little more verbosity wouldn't hurt here. 
This isn't a mystery game.

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

Reply via email to