Message130232
| Author |
daniel.urban |
| Recipients |
amaury.forgeotdarc, dangyogi, daniel.urban, hagen, kcarnold, terry.reedy |
| Date |
2011年03月07日.07:21:24 |
| SpamBayes Score |
3.6884867e-08 |
| Marked as misclassified |
No |
| Message-id |
<1299482485.27.0.345200073505.issue4806@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|