[Zope] basic python -> dtml translation.

chas panda@skinnyhippo.com
Mon, 13 Sep 1999 02:46:22 +0800


trivial no doubt, but buggered if i can find the python
equivalent for "eval". eg. how would you rewrite this in
dtml :

for i in range(1,6) :
	print (eval('var%s' % i))


which prints out the values of var1, var2, var3, var4, var5, var6

<dtml-in "_.range(1,6)">
	??
</dtml-in>

cheers,

chas