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 daniel.urban
Recipients amaury.forgeotdarc, dangyogi, daniel.urban, hagen, kcarnold, terry.reedy
Date 2011-03-07.07:21:24
SpamBayes Score 3.68849e-08
Marked as misclassified No
Message-id <>
I'm attaching an updated patch. Instead !PyIter_Check() this patch checks for tp_iter == NULL && !PySequence_Check.  If this condition is false, PyObject_GetIter has a chance to succeed (and if it fails, we shouldn't mask the exception).  I also added more tests which show why the previous patch was incorrect.
Date User Action Args
2011-03-07 07:21:25daniel.urbansetrecipients: + daniel.urban, terry.reedy, amaury.forgeotdarc, dangyogi, hagen, kcarnold
2011-03-07 07:21:25daniel.urbansetmessageid: <>
2011-03-07 07:21:24daniel.urbanlinkissue4806 messages
2011-03-07 07:21:24daniel.urbancreate