In <[EMAIL PROTECTED]>, Steven
D'Aprano wrote:

> On Fri, 27 Oct 2006 11:25:09 -0700, Carl Banks wrote:
> 
>> Iterators do have overlapping uses with lists, but the "if a:" doesn't
>> work for them, so it's moot.
> 
> Sure it works for iterators.
> 
>>>> it = iter([0])
>>>> bool(it)
> True
>>>> it.next()
> 0
>>>> bool(it)
> False

It works for *this* iterator.  By accident.

Ciao,
        Marc 'BlackJack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to