On Mon, Dec 1, 2008 at 7:56 PM, John Fouhy <[EMAIL PROTECTED]> wrote:

> [1] Technically, it iterates over an iterator, which you can think of
> as an object that behaves like a list when you throw it at a for loop.

The object of the 'in' must be an iterable, which is an object that
can produce an iterator when asked. A list is an iterable, not an
iterator.

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to