From 6a684470bad6424ae65f5b4067aa22300ccc3c9a Mon Sep 17 00:00:00 2001
From: Andrew Kuchling
Later versions of Python 3.x added more features, discussed in a series of - "What's New" documents for + "What's New" documents for Python 3.1, Python 3.2, -Python 3.3, and -Python 3.4. +Python 3.3, +Python 3.4, and +Python 3.5.
From 7735ac07ae5c7e5072d27b011f51e1b11816decd Mon Sep 17 00:00:00 2001 From: Andrew KuchlingThe most current version of Python 3 is ${python_stable_exact} - here's a list of -new things added: +
The most current version of Python 3 is ${python_stable_exact}.
-yield from expression for delegating to a generator (PEP 380)
- import statement is now built atop the importlib moduleu'' syntax is now accepted againYou can see details on what's changed by looking at the "You can see details of what's changed by looking at the "What's New in ${python_stable_major}"
document, as well as the earlier What's New articles, and the
Date: Sun, 8 May 2016 22:22:55 -0400
Subject: [PATCH 3/4] Update configuration settings; add a setting for Python
2.7
---
site/_config.py | 13 +++++++++++--
site/_templates/sections/whatispython.mako | 4 ++--
2 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/site/_config.py b/site/_config.py
index 7ec97a5..d5b5041 100644
--- a/site/_config.py
+++ b/site/_config.py
@@ -25,10 +25,19 @@
site.template_vars = {
# The full version number of the latest stable version, e.g. 3.4.0
# or 3.5.2.
- 'python_stable_exact': '3.4.0',
+ 'python_stable_exact': '3.5.1',
# Version number of latest stable version, leaving off the minor number
# e.g. 3.4 or 3.5.
- 'python_stable_major': '3.4',
+ 'python_stable_major': '3.5',
+
+ # Month, year of 3.5 release
+ 'python_stable_date': 'December 2015',
+
+ # The full version number of latest 2.7 release
+ 'python27_exact': '2.7.11',
+
+ # Month, year of most recent 2.7 release
+ 'python27_date': 'December 2015',
}
diff --git a/site/_templates/sections/whatispython.mako b/site/_templates/sections/whatispython.mako
index 8c04bd0..035e943 100644
--- a/site/_templates/sections/whatispython.mako
+++ b/site/_templates/sections/whatispython.mako
@@ -5,13 +5,13 @@
Although most Python code is currently written for Python
2.x, Python 3.x is the present and future of the language. Python 2.7.6 was released in November 2013.
+ Python ${python27_exact} was released in ${python27_date}.
The 2.x branch will have no further major releases,
though the 2.7 end-of-life release will have an extended period of bug
and security fixes.
Python 3.x continues to be actively developed. The most recent
-release is Python ${python_stable_major}, released in March 2014.