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.15:20:53
SpamBayes Score 0.29584634
Marked as misclassified No
Message-id <1209568859.59.0.676259705178.issue2719@psf.upfronthosting.co.za>
In-reply-to
Content
One more question: What is the rationale for

+	res = (*it->ob_type->tp_iternext)(it);
+	if (res == NULL) {
..
+			PyErr_SetNone(PyExc_StopIteration);
+			return NULL;

?

I would think tp_iternext failing to set an exception should not be 
translated into stop iteration.  Instead, builtin_next() should return 
NULL without an exception set and thus trigger a SystemError.
History
Date User Action Args
2008-04-30 15:21:01belopolskysetspambayes_score: 0.295846 -> 0.29584634
recipients: + belopolsky, gvanrossum, georg.brandl, rhettinger
2008-04-30 15:20:59belopolskysetspambayes_score: 0.295846 -> 0.295846
messageid: <1209568859.59.0.676259705178.issue2719@psf.upfronthosting.co.za>
2008-04-30 15:20:57belopolskylinkissue2719 messages
2008-04-30 15:20:54belopolskycreate