diff options
author | tavis_rudd <tavis_rudd> | 2004-02-01 01:21:19 +0000 |
---|---|---|
committer | tavis_rudd <tavis_rudd> | 2004-02-01 01:21:19 +0000 |
commit | c22b17a44c70b63eeaae7ebd84765b3c1fdb857c (patch) | |
tree | d7b3b24b56e83fa9bdf4867d71e8bacf4b69d5c7 /BUGS | |
parent | 96084a6eb9e68d42f2438f62679abf86e9211eb9 (diff) | |
download | python-cheetah-c22b17a44c70b63eeaae7ebd84765b3c1fdb857c.tar.gz |
added new bug
Diffstat (limited to 'BUGS')
-rw-r--r-- | BUGS | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -5,6 +5,31 @@ See the file CHANGES for a list of bugs that have been resolved. Developers: if a bug was significant and affected a released version of Cheetah, be sure to note its fix in the CHANGES file! + +Clash between searchList and locally assigned variables +======================================================= +On Saturday 31 January 2004 05:29, <psyche@mensa.org.pl> wrote: + from Cheetah.Template import Template as tmpl + print tmpl( \ + ''' + #if False + #for $a in [1]: + #end for + #end if + + $a + ''', searchList=[{'a': 3}]) + + throws exception: + + Traceback (most recent call last): + File "P:\python\cheetah\bug.py", line 16, in ? + print t + File "<string>", line 36, in respond + UnboundLocalError: local variable 'a' referenced before assignment + + ...it shouldn't, right? + Compiler forgets commas ======================= Affects Cheetah 0.9.14, CVS and possibly earlier. |