[Zope] PHP style variable variables in Python?
Michael LaPera
mlapera@colorbyte.com
Tue, 9 Apr 2002 23:39:50 -0400
Hello,
First of all I am new to Python and Zope coming from Java/PHP.
I am creating a simple Python script that displays a random image
(image1, image2, image3....).
All I want to do do is generate a random number which is concatenated to
the end of the context attribute similar to this example in PHP:
$randomNumber = ***some random number***
return context.{'image'.$randomNumber}
Is this possible (and easy) in Python?
Thanks,
Michael LaPera