Il giorno 03 ottobre 2013 17:59, Marco Beri <marcob...@gmail.com> ha
scritto:

> 2013/10/3 Remo The Last <py.remothel...@yahoo.it>
>
>> 2° listato che mi si impalla
>> conn = []
>> contatore = 0
>> while contatore <= 10:
>>     conn[contatore] = telnetlib.Telnet(address,23,7)
>>     contatore += 1
>>
>
> Se vuoi fare conn[contatore] come se fosse un dictionary, devi
> inizializzarlo come dictionary:
>
> conn = {}
>

giusto!
non avevo visto bene, per come l'aveva scritto otteneva un  IndexError
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a