<div dir="ltr">2013/10/3 Remo The Last <span dir="ltr"><<a href="mailto:py.remothelast@yahoo.it" target="_blank">py.remothelast@yahoo.it</a>></span><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:'times new roman','new york',times,serif"><div><span style="font-size:12pt">2° listato che mi si impalla</span><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">
<span>conn = []</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif"><span>contatore = 0</span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">
<span>while contatore <= 10:</span><br><span> conn[contatore] = telnetlib.Telnet(address,23,7)</span><br><span> contatore += 1<br></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:'times new roman','new york',times,serif">
<span></span></div></div></div></blockquote><div><br></div><div>Se vuoi fare conn[contatore] come se fosse un dictionary, devi inizializzarlo come dictionary:</div><div><br></div><div>conn = {}</div><div><br></div><div>Altrimenti devi fare:</div>
<div><br></div><div>conn.append(telnetlib.Telnet(address,23,7))<br></div><div><br></div><div>Ciao.</div><div>Marco.</div><div><br></div></div><div><br></div>-- <br><div><div><div><div><a href="http://beri.it/" target="_blank">http://beri.it/</a> - Un blog</div>
<div><a href="http://beri.it/i-miei-libri/" target="_blank">http://beri.it/i-miei-libri/</a> - Qualche libro</div><div><br></div></div></div></div>
</div></div>