Mercurial > genshi > genshi-test
changeset 692:af86a8e828d2
Add warning about using code blocks on Python 2.3. Closes #181.
author | cmlenz |
---|---|
date | Mon, 17 Mar 2008 10:25:44 +0000 |
parents | be6890ff84fe |
children | fa8a55fe2d57 |
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`: