Alexander Belopolsky <[EMAIL PROTECTED]> added the comment:

On Wed, Apr 30, 2008 at 12:41 PM, Guido van Rossum
<[EMAIL PROTECTED]> wrote:
>
>  Guido van Rossum <[EMAIL PROTECTED]> added the comment:
>
>  > ..  builtin_next() should return
>  > NULL without an exception set and thus trigger a SystemError.
>
>  Wrong; the iternext slot is designed to return NULL without setting an
>  exception.  See e.g. listiter_next().

I did not know that.  Thanks for the explanation.  In this case,
wouldn't it be cleaner to call PyIter_Next which is documented to
return NULL with no exception?

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2719>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to