Message308585
Is it worth to emit more specific (but possible uniform) error messages in other unpacking cases (see msg307999)?
FYI if a class implements __iter__ which returns non-iterable, the following error is raised:
>>> class C:
... def __iter__(self):
... return 1
...
>>> a, b = C()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: iter() returned non-iterator of type 'int' |
|
Date |
User |
Action |
Args |
2017-12-18 21:40:26 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, terry.reedy, eric.smith, steven.daprano, r.david.murray, Camion |
2017-12-18 21:40:26 | serhiy.storchaka | set | messageid: <1513633226.62.0.213398074469.issue32259@psf.upfronthosting.co.za> |
2017-12-18 21:40:26 | serhiy.storchaka | link | issue32259 messages |
2017-12-18 21:40:26 | serhiy.storchaka | create | |
|