This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, georg.brandl, gvanrossum, rhettinger
Date 2008-04-30.17:13:47
SpamBayes Score 0.0860551
Marked as misclassified No
Message-id <>
In-reply-to <>
On Wed, Apr 30, 2008 at 12:41 PM, Guido van Rossum
<> wrote:
> the iternext slot is designed to return NULL without setting an
>  exception.

This is not what the documentation says:

iternextfunc PyTypeObject.tp_iternext
An optional pointer to a function that returns the next item in an
iterator, or raises StopIteration when the iterator is exhausted.
""" <>

It looks like documentation needs to be updated, but wouldn't it be
odd to specify that setting StopIteration exception is optional?  It's
probably more logical to intercept StopIteration in slot_tp_iternext
rather than at every place where tp_iternext is called.
Date User Action Args
2008-04-30 17:13:51belopolskysetspambayes_score: 0.0860551 -> 0.0860551
recipients: + belopolsky, gvanrossum, georg.brandl, rhettinger
2008-04-30 17:13:49belopolskylinkissue2719 messages
2008-04-30 17:13:48belopolskycreate