<div dir="ltr"><div><div>I've got the beginner's version of a question I think Denis asked recently...<br><br></div>If I'm iterating a variable through a series of list names, for future processing, I would like to print the name of the list the variable is set to in a given moment... i.e. <br>
<br></div>for i in [alist, blist, clist]<br clear="all"><div><div><div>    i[3] = "okey dokey "<br></div><div>    print(i[3], <a href="http://i.name">i.name</a>)  # this is definitely not the way to do it...<br>
<br></div><div>output:<br></div><div>okey dokey alist<br>okey dokey blist<br>okey dokey clist<br></div><div><br></div><div>Is there any way to do that? I'm thinking there may not be, since the variable is actually bound to the content of the list, not the other name... which would be good, in the sense that I'm beginning to understand, but bad in the sense that I need to rethink a piece (or two) of code.<br>
</div><div>-- <br><div dir="ltr">Keith<br></div>
</div></div></div></div>