Message130232
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:25 | daniel.urban | set | recipients:
+ daniel.urban, terry.reedy, amaury.forgeotdarc, dangyogi, hagen, kcarnold |
2011-03-07 07:21:25 | daniel.urban | set | messageid: <1299482485.27.0.345200073505.issue4806@psf.upfronthosting.co.za> |
2011-03-07 07:21:24 | daniel.urban | link | issue4806 messages |
2011-03-07 07:21:24 | daniel.urban | create | |
|