summaryrefslogtreecommitdiff
path: root/BUGS
diff options
context:
space:
mode:
authortavis_rudd <tavis_rudd>2004-02-01 01:21:19 +0000
committertavis_rudd <tavis_rudd>2004-02-01 01:21:19 +0000
commitc22b17a44c70b63eeaae7ebd84765b3c1fdb857c (patch)
treed7b3b24b56e83fa9bdf4867d71e8bacf4b69d5c7 /BUGS
parent96084a6eb9e68d42f2438f62679abf86e9211eb9 (diff)
downloadpython-cheetah-c22b17a44c70b63eeaae7ebd84765b3c1fdb857c.tar.gz
added new bug
Diffstat (limited to 'BUGS')
-rw-r--r--BUGS25
1 files changed, 25 insertions, 0 deletions
diff --git a/BUGS b/BUGS
index bb4ef1d..078404a 100644
--- a/BUGS
+++ b/BUGS
@@ -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.