In article 
<[email protected]>,
 noydb <[email protected]> wrote:

> How would you convert a list of strings into a list of variables using
> the same name of the strings?
> 
> So, ["red", "one", "maple"] into [red, one, maple]
> 
> Thanks for any help!

I'm not sure what you're trying to do, but explore the dictionary 
returned by locals().  You can do something like:

loc = locals()
[loc["red"], loc["one"], loc["maple"]]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to