Dynamic variable names ... with imported libraries.

Loko Loko at caramail.com
Mon May 19 05:06:38 EDT 2003


Hi there.

I also found an even more simple solution : 

>>> temp = 'my_constant'
>>> eval('Atllib.'+temp)
Content of my_constant


is this ok, risky ... ?




More information about the Python-list mailing list