[issue32259] Misleading "not iterable" Error Message when generator return a "simple" type, and a tuple is expected

Camion report at bugs.python.org
Sat Dec 9 09:34:54 EST 2017


Camion <camion_spam-pybugs at yahoo.com> added the comment:

Ok, but the other explanation is valid as well. That's why I suggest to modify the error message like this : 


TypeError: '[TYPE]' object is not iterable
- OR -
ValueError: not enough values to unpack (expected [N], got 1)

----------
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32259>
_______________________________________


More information about the Python-bugs-list mailing list