Re: Testing for an empty list

2008-07-03 Thread Roy Smith
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Cameron Laird) wrote: > 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 = [] > >> > >>

Re: Testing for an empty list

2008-07-03 Thread Cameron Laird
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 te

Re: Testing for an empty list

2008-07-03 Thread Matthew Fitzgibbons
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() -Matt -- http://mail.python.o