Skip to content Skip to sidebar Skip to footer

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"