getting info out of a list.

Peter Hansen peter at engcorp.com
Mon Jun 16 16:13:50 CEST 2003


anton muhin wrote:
> 
>   And just my two cents: your for loop could be rewritten a little bit
> more effeciently and (IMHO) clearly:
> 
> for wires, names in wirelist.iteritems():
>       Wire = ("GW", wires) + bits
>       print Wire

With a now-undefined name "bits" ... ;-)




More information about the Python-list mailing list