Il giorno lun, 27/09/2010 alle 22.23 +0200, fabiofo...@yahoo.it ha scritto: > Salve a tutti, > facendo girare il seguente script, di cui vi incollo uno snippet: > > 160 for index in conn_comp.keys(): > 161 print "ADO %s" % (index) > 162 for m in conn_comp[index]: > #check if the current method has a node (in the path) that > refers to the C-C in which it exists > 164 if index in undirect_used_glb_var.get(m, > ['nothing']): > #if YES delete the dummy references > 166 undirect_uesed_glb_var[m] = None > 167 print "M: %s DU: %s IU: %s" % (m, > direct_used_glb_var[m], > > undirect_used_glb_var.get(m)) > > 168 print "End\n" > > ottengo l'errore riportato in oggetto, cioè la riga 164 lancia uno > > unhandled TypeError "argument of type 'NoneType' is not iterable" > > > > conn_comp è un dizionario le cui chiavi sono numeri da 0.....n > > undirect_used_glb_var è un altro dizionario
I cui valori sono... None, per esempio? ciaociao Pietro _______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python