Message236475
I am posting a new version of Daniel’s patch as issue4806-star-TypeError.v2.patch:
* Merged with recent “default” (3.5) branch
* Dropped the documentation fix, since revision a8aa918041c2 already fixed that in an identical fashion
* Changed to a “look before you leap” style check before attempting PySequence_Tuple(). This way we get to keep other valid errors such as “iter() returned non-iterator”.
I am comfortable with the code changes previous patch as well as mine. Checking the “tp_iter” field and PySequence_Check() is basically what happens behind the scenes, via PyObject_GetIter() anyway. So I think either patch is valid and a worthwhile improvement. |
|
Date |
User |
Action |
Args |
2015-02-24 04:29:14 | martin.panter | set | recipients:
+ martin.panter, georg.brandl, terry.reedy, amaury.forgeotdarc, ncoghlan, pitrou, ron_adam, dangyogi, benjamin.peterson, gpolo, hagen, kcarnold, r.david.murray, daniel.urban, pfctdayelise, brandjon, DragonFireCK |
2015-02-24 04:29:14 | martin.panter | set | messageid: <1424752154.2.0.471173353395.issue4806@psf.upfronthosting.co.za> |
2015-02-24 04:29:14 | martin.panter | link | issue4806 messages |
2015-02-24 04:29:13 | martin.panter | create | |
|