﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
181	Variables in outer scopes not visible in python code blocks in for loops in python 2.3	jondreads@…	cmlenz	"Example code:
{{{
>>> from genshi.template import MarkupTemplate
>>> print MarkupTemplate(""""""
... <div xmlns:py=""http://genshi.edgewall.org/"" py:for=""i in range(2)"">
...   <div py:for=""j in range(2)"">
...     <?python
...       print i, j
...     ?>
...     ${i} ${j}
...   </div>
... </div>
... """""").generate().render() 
}}}
In python 2.5 and 2.4 on Windows, using genshi 0.4.4 the output is:
{{{
0 0
0 1
1 0
1 1
<div>
   <div>
     0 0
   </div><div>
     0 1
   </div>
 </div><div>
   <div>
     1 0
   </div><div>
     1 1
   </div>
 </div>
}}}

On python 2.3, using 0.4.4 the output is:
{{{
undefined 0
undefined 1
undefined 0
undefined 1
<div>
   <div>
     0 0
   </div><div>
     0 1
   </div>
 </div><div>
   <div>
     1 0
   </div><div>
     1 1
   </div>
 </div>
}}}"	defect	closed	minor	0.5	Documentation	0.4.4	fixed		
