Why isn't this unpacking work for my dictionary?
The dictionary is build as follows:
cutDict = {'scene1': [('scene3', 1001, 1125)]}
I'm trying to unpack this like:
for key, (cut, fIn, fOut) in cutDict.iteritems():
print key
print cut
print fIn
print fOut
but this results in:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: need more than 1 value to unpack
Right now I'm building the dictionary via:
cutDict.setdefault(itm, [])
for cutItm in itm.cut_items_ordered:
cutInOut = (mostcutItm, recentcutItm.cut_item_in, callcutItm.cut_item_out)
cutDict[itm].append(cutInOut):