# HG changeset patch # User cmlenz # Date 1205749544 0 # Node ID e162edb680cf26e897883654dd01c1c10f49cf33 # Parent 2298d798513ebbce1892754fcb6af31745ed13a2 Add warning about using code blocks on Python 2.3. Closes #181. diff --git a/doc/templates.txt b/doc/templates.txt --- a/doc/templates.txt +++ b/doc/templates.txt @@ -270,6 +270,12 @@ into a sandboxable template engine; there are sufficient ways to do harm even using plain expressions. +.. warning:: Unfortunately, code blocks are severely limited when running + under Python 2.3: For example, it is not possible to access + variables defined in outer scopes. If you plan to use code blocks + extensively, it is strongly recommended that you run Python 2.4 + or later. + .. _`error handling`: