Typeerror: 'long' Object Is Not Iterable
I have just created a dictionary in python. stb_info = self.stb_type() print type(stb_info) #The output gives me dict When I want to run my tread function for each group for group
Solution 1:
Try stb_info.items()
. Just iterating over a dict iterates over its keys, so it's trying to unpack a key (a long) into two parts, which isn't possible.
Post a Comment for "Typeerror: 'long' Object Is Not Iterable"