Boolean tests [was Re: Attack a sacred Python Cow]

Erik Max Francis max at
Wed Jul 30 08:36:58 CEST 2008

Russ P. wrote:

> Come to think of it, shouldn't the list type have an "isempty" method?
> Or does it?

Yes.  It's written:

	if not aList:

Erik Max Francis && max at &&
  San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
   The doors of Heaven and Hell are adjacent and identical.
    -- Nikos Kazantzakis

More information about the Python-list mailing list