Executing a string as python code
Stephen Boulet
stephen at theboulets.net
Tue Oct 23 23:30:40 EDT 2001
Can someone tell me how to execute an arbitrary string as python code?
I'm trying to make a bunch of lists named list00, list01, ..., to list99 (I
don't want to make a single list of lists, since list00 is actually already
a list of lists), and I thought doing this as a string would be the easiest
way.
I guess a dictionary with string keys and list values would be another way
(maybe a better way).
Thanks.
-- Stephen
More information about the Python-list
mailing list