Message259251
In Python 2, the old-style “instance” objects are making it hard to fix this like in Python 3. And completely removing the custom error message seems a bit drastic for 2.7.
Instead, I propose to just check for a generator type after the TypeError is caught, and don’t bother checking for other kinds of iterables and sequences. |
|
Date |
User |
Action |
Args |
2016-01-30 11:21:46 | 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, python-dev, pfctdayelise, brandjon, yselivanov, DragonFireCK, Samuel BOVÉE |
2016-01-30 11:21:46 | martin.panter | set | messageid: <1454152906.75.0.593186961936.issue4806@psf.upfronthosting.co.za> |
2016-01-30 11:21:46 | martin.panter | link | issue4806 messages |
2016-01-30 11:21:46 | martin.panter | create | |
|