From dff31de20aac85e4f4834c2466762cbf23fc0a7b Mon Sep 17 00:00:00 2001 From: Ramiro Morales Date: Thu, 9 Jun 2011 20:01:28 +0000 Subject: Fixed #16155 -- Removed Python 2.4 compatibility constructs from code and mentions from docs. Thanks Aymeric Augustin for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16349 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/faq/install.txt | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'docs/faq') diff --git a/docs/faq/install.txt b/docs/faq/install.txt index f500e77a88..f1e865a966 100644 --- a/docs/faq/install.txt +++ b/docs/faq/install.txt @@ -16,7 +16,7 @@ How do I get started? What are Django's prerequisites? -------------------------------- -Django requires Python_, specifically any version of Python from 2.4 +Django requires Python_, specifically any version of Python from 2.5 through 2.7. No other Python libraries are required for basic Django usage. @@ -40,17 +40,15 @@ PostgreSQL fans, and MySQL_, `SQLite 3`_, and Oracle_ are also supported. .. _`SQLite 3`: http://www.sqlite.org/ .. _Oracle: http://www.oracle.com/ -Do I lose anything by using Python 2.4 versus newer Python versions, such as Python 2.5 or 2.6? +Do I lose anything by using Python 2.5 versus newer Python versions, such as Python 2.6 or 2.7? ----------------------------------------------------------------------------------------------- Not in the core framework. Currently, Django itself officially supports any -version of Python from 2.4 through 2.7, inclusive. However, newer versions of +version of Python from 2.5 through 2.7, inclusive. However, newer versions of Python are often faster, have more features, and are better supported. If you use a newer version of Python you will also have access to some APIs that -aren't available under older versions of Python. For example Django provides -some `context managers`_ for various operations. If you use Python 2.4 you -won't be able to use them, however other APIs which provide the same -functionality are always made available. +aren't available under older versions of Python. For example, since Python 2.6, +you can use the advanced string formatting described in `PEP 3101`_. Third-party applications for use with Django are, of course, free to set their own version requirements. @@ -61,11 +59,11 @@ versions as part of a migration which will end with Django running on Python 3 All else being equal, we recommend that you use the latest 2.x release (currently Python 2.7). This will let you take advantage of the numerous -improvements and optimizations to the Python language since version 2.4, and +improvements and optimizations to the Python language since version 2.5, and will help ease the process of dropping support for older Python versions on the road to Python 3. -.. _context managers: http://docs.python.org/reference/datamodel.html#context-managers +.. _PEP 3101: http://www.python.org/dev/peps/pep-3101/ Can I use Django with Python 2.4? --------------------------------- -- cgit v1.3