2013/10/13 Gollum1 <gollum1.smeag...@gmail.com> > The first time, v1 and v2 will be the same because they share the > same list of dictionary keys. The second time they will differ > because each has its own independent copy of the dictionary's keys. > > parla di due tempi, in quanto prima fa la prova con > >>> v1=v2=d.keys() > e poi la stessa prova con > >>> v1=d.keys() > >>> v2=d.keys() >
Nel primo caso e' come se tu facessi v1=d.keys() v2=v1 Nel secondo assegni d.keys() due volte a due distinti contenitori. Carlos -- "Somos los que amasan, sin embargo no tenemos pan, somos los que cavan el carbón, sin embargo tenemos frío somos los que no tienen nada, y estamos viniendo a tomar el mundo." Tassos Livaditis (Poeta greco, 1922, 1988)
_______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python