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

Erik Max Francis max at alcyone.com
Wed Jul 30 02:36:58 EDT 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 alcyone.com && http://www.alcyone.com/max/
  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