In article <[EMAIL PROTECTED]>,
Matthew Fitzgibbons  <[EMAIL PROTECTED]> wrote:
>Alexnb wrote:
>> Okay this is a simple question I just don't know how. If I have a list, say:
>> 
>> funList = []
>> 
>> and after a while something possible should have been appended to it, but
>> wasn't. How can I test if that list is empty.
>
>if not funList:
>       do_something()
                        .
                        .
                        .
It's also perfectly legitimate--and arguably even more 
precise--to write

    if funList == []:
        do_something()
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to