Re-inserting data

Alex alex at
Tue Mar 21 22:46:28 CET 2000

> Some clarification is necessary as to my earlier message.  Here is what the
> nesting is like.
> 	  result = [(a, b, c, d, e), (a1, b1, c1, d1, e1),...]

Oh, I guess you are having trouble changing the elements because they
are tuples.  Try using lists instead.  Then you can do things like

for item in times:
    time2 = item[-1]
    time2 = munged_time (time2)
    item[-1] = time2


More information about the Python-list mailing list