automatically naming a global variable

Chad Everett chat at linuxsupreme.homeip.net
Tue May 22 10:19:35 EDT 2001


If I have a string variable defined, how can I create a global
variable with the same name as the string?

For example:

>>> x = "variable_name'

Now I want to be able to use x to create a global variable whose
name is 'variable_name'




More information about the Python-list mailing list