variable hell

Sybren Stuvel sybrenUSE at
Thu Aug 25 15:41:51 CEST 2005

Nx enlightened us with:
> I am unpacking a list into variables, for some reason they need to
> be unpacked into variable names like a0,a1,a2....upto aN whatever is
> in the list.

You're probably doing things the wrong way. What is your ultimate goal
with this? There is probably a better way of doing it.

In the mean time, look at eval().

The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa

More information about the Python-list mailing list