TypeError: el objeto 'largo' no es iterable
Acabo de crear un diccionario en Python.
stb_info = self.stb_type()
print type(stb_info) #The output gives me dict
Cuando quiero ejecutar mi función de banda de rodadura para cada grupo
for group_no, shelves in stb_info:
self.thread_function(group_no, shelves)
Estoy teniendo el siguiente error:
TypeError: 'long' object is not iterable
Entonces, ¿cómo puedo resolver este error?