[issue32259] Misleading "not iterable" Error Message when generator return a "simple" type, and a tuple is expected
Camion
report at bugs.python.org
Mon Dec 18 23:31:36 EST 2017
Camion <camion_spam-pybugs at yahoo.com> added the comment:
thank You Serhiy for your C implementation.
About this question of the dilemma around the meaning of "non iterable int" why not simply put the "non iterable" between parenthesis to avoid making it too verbose ?
"cannot unpack (non-iterable) int object"
or "cannot unpack int object (not iterable)
However, I wonder why nearly all the changes I've seen, seem to be about int ? This situation might arise with any non-iterable type (I got it first with Fraction).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32259>
_______________________________________
More information about the Python-bugs-list
mailing list