On Jul 29, 11:36 pm, Erik Max Francis <[EMAIL PROTECTED]> wrote:
> 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:
>             ...

As you know, that is not quite exactly the same thing. An "isempty"
method would fail if aList were an integer, and such failure might be
desirable if someone mistakenly had aList pointing to an integer.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to