Combining Lists and Tupels

Batista, Facundo FBatista at uniFON.com.ar
Thu May 22 16:02:05 EDT 2003


#- > f = file("test.csv")
#- > list = []
#- better, mylist = []

ouch!


#- >  list.append((data[0], data[1], address))
#- better, mylist.append....

ouch again!


#- > Pay attention to the double (( and )) in the append.
#- but don't copy this imitation of (OP's) use of builtin name 'list' as
#- a variable.

My fault! You should never, *never*, use a builtin name for a variable name.
It was just a typo for copying the original mail.

.	Facundo






More information about the Python-list mailing list