Generate variables at run time?

Byron Morgan lazypointer at yahoo.com
Wed Jan 8 01:29:09 EST 2003


Is there any way in Python to generate a new variable name based on data? I
have tried the eval() function, but this gets rejected, if the variable
doesn't already exist.

There has to be a way to do this, but I can't find it, probaly because I am
just starting to learn Python.

Byron






More information about the Python-list mailing list