Re: Testing for an empty list
- From: Matthew Fitzgibbons <elessar@xxxxxxxxxx>
- Date: Thu, 03 Jul 2008 15:05:53 -0600
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
.
- Follow-Ups:
- Re: Testing for an empty list
- From: Cameron Laird
- Re: Testing for an empty list
- Prev by Date: Parsing MIME-encoded data in an HTTP request
- Next by Date: Re: ANN: XML builder for Python
- Previous by thread: Testing for an empty list
- Next by thread: Re: Testing for an empty list
- Index(es):