Using split in a for loop results in the mentioned exception. But when taking the elements indpendent from a for loop it works:
>>> for k,v in x.split("="):
... print k,v
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: too many values to unpack
>>> y = x.split("=")
>>> y
['abc', 'asflskfjla']
>>> k,v = y
>>> k
'abc'
>>> v
'asflskfjla'
An explanation would be appreciated - and also naturally the proper syntax for the for loop version.