Newbie lists question

jepler at unpythonic.net jepler at unpythonic.net
Wed Jul 3 22:10:51 EDT 2002


Rows are retured as tuples.  If you selected more than one column you might
see something like
    [('Wall', 'Larry'), ('van Rossum', 'Guido'), ...]

Because you SELECTed one field, you get a length-1 tuple.

try this as your "for" loop:
    for last in result:
	selectlist.append(last[0])
instead of using "last".

Jeff





More information about the Python-list mailing list