Hmm, maybe I stumbled upon at least one approach, turning the problem around. Make it something like:
for i in ["alist", "blist", "clist"] i[3] = "okey dokey " print(eval(i)[3], i) Of course I've been staring at this for a while, but as soon as I post I find a way... this is my first use of eval(), so it took me a while to stumble upon it. If there are more elegant solutions, I'm all ears.
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor