> > You probably want > > start = getattr(data[key][i], local_name) > > Now you can set local_name to a string "name" or "rev" > or whatever attribute of data[key][i] you want to > access. > I always forget about getattr (-;