5
Comprobando si type == list en python
Puede que tenga un pedo cerebral aquí, pero realmente no puedo entender qué hay de malo en mi código: for key in tmpDict: print type(tmpDict[key]) time.sleep(1) if(type(tmpDict[key])==list): print 'this is never visible' break la salida es <type 'list'>pero la instrucción if nunca se activa. ¿Alguien puede detectar mi error aquí?
185
python