The following fails in Python 3.5:
for key, (a, b) in {'my_key': ('foo', 'bar')}:
print(key, a, b)
with:
ValueError: too many values to unpack (expected 2)
Why is it unable to unpack the tuple properly?
The following fails in Python 3.5:
for key, (a, b) in {'my_key': ('foo', 'bar')}:
print(key, a, b)
with:
ValueError: too many values to unpack (expected 2)
Why is it unable to unpack the tuple properly?