Mercurial > genshi > mirror
changeset 692:e162edb680cf trunk
Add warning about using code blocks on Python 2.3. Closes #181.
author | cmlenz |
---|---|
date | Mon, 17 Mar 2008 10:25:44 +0000 |
parents | 2298d798513e |
children | 35e143388705 |
files | doc/templates.txt |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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`: