From 06a8f5b75ce2cb3e20d2da5c160570e6ab1b7c02 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Mon, 1 Jun 2015 17:15:43 +0200 Subject: [PATCH] Update FAQ about unsupported Python versions Thanks to @ThomasWaldmann for the original patch. His fork is gone so I can't apply the original commits. --- docs/faq.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/faq.rst b/docs/faq.rst index 3869684b..0b0375e1 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -147,8 +147,8 @@ work in production environments:: Credit for this snippet goes to `Thomas Johansson `_ -Why is there no Python 2.3 support? ------------------------------------ +Why is there no Python 2.3/2.4/2.5/3.1/3.2 support? +--------------------------------------------------- Python 2.3 is missing a lot of features that are used heavily in Jinja2. This decision was made as with the upcoming Python 2.6 and 3.0 versions it becomes @@ -156,6 +156,12 @@ harder to maintain the code for older Python versions. If you really need Python 2.3 support you either have to use `Jinja 1`_ or other templating engines that still support 2.3. +Python 2.4/2.5/3.1/3.2 support was removed when we switched to supporting +Python 2 and 3 by the same sourcecode (without using 2to3). It was required to +drop support because only Python 2.6/2.7 and >=3.3 support byte and unicode +literals in a way compatible to each other version. If you really need support +for older Python 2 (or 3) versions, you can just use Jinja2 2.6. + My Macros are overridden by something ------------------------------------- -- 2.47.2