Feature or enhancement
Proposal:
This is great:
>>> x, y, z = 1, 2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: not enough values to unpack (expected 3, got 2)
But here, it doesn't seem to tell how many values were found:
>>> x, y, z = 1, 2, 3, 4
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: too many values to unpack (expected 3)
I was hoping to see (expected 3, got 4) here. The eval loop also seems to have access to an entire PyList object at this point, so getting its length for the error message should not cause any changes in behaviour.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
Feature or enhancement
Proposal:
This is great:
But here, it doesn't seem to tell how many values were found:
I was hoping to see
(expected 3, got 4)here. The eval loop also seems to have access to an entirePyListobject at this point, so getting its length for the error message should not cause any changes in behaviour.Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs