On 3/6/07, Brett Cannon <[EMAIL PROTECTED]> wrote:
> http://docs.python.org/dev/api/type-structs.html#l2h-1017 doesn't say
> that a NULL return can be used as a signal that iterator is exhausted
> without raising StopIteration.  That would mean the above could be
> simplified somewhat in terms of return value checking.

FWIW, PEP 234 states that the end of iteration can also be signaled by
returning NULL without an exception set.

-- 
Daniel Stutzbach, Ph.D.             President, Stutzbach Enterprises LLC
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to