[Tutor] Variables of Variables

Tino Dai tinoloc at gmail.com
Thu Jan 18 22:15:37 CET 2007


Hi Everybody,

     Is there a way to do variables of variables in python. For example in
perl:

$foo = 'bar'
$$foo = '5'

and $bar will have a value of 5. I have been search high and low for a
simple way to do this in python?

-Thanks,
Tino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070118/558cdae2/attachment.html 


More information about the Tutor mailing list