In message <[EMAIL PROTECTED]>, Wildemar
Wildenburger wrote:

> Lawrence D'Oliveiro wrote:
>
>> In message <[EMAIL PROTECTED]>, Chris
>> Mellon wrote:
>> 
>>> On 9/5/07, Steve Holden <[EMAIL PROTECTED]> wrote:
>>>> Doran, Harold wrote:
>>>>>
>>>>> Is there a way to check if the first element of y is null?
>>>>> 
>>>> len(y[0]) == 0
>>>>
>>> Better spelled as
>>>
>>> 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.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to