summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-08-20 21:39:26 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-08-20 21:39:26 (GMT)
commitff3d9399fc79b64b23b60ac9a11fa9009e6333e7 (patch)
tree81be108c70c19a0f4cab93131f74d19674e17eed /Doc/whatsnew
parent87f58d828a4bd0cb2fcea4fd9e9c51e615878d1f (diff)
downloadcpython-ff3d9399fc79b64b23b60ac9a11fa9009e6333e7.zip
cpython-ff3d9399fc79b64b23b60ac9a11fa9009e6333e7.tar.gz
cpython-ff3d9399fc79b64b23b60ac9a11fa9009e6333e7.tar.bz2
Close #12326: sys.platform is now always 'linux' on Linux
On Linux, sys.platform doesn't contain the major version anymore. It is now always 'linux', instead of 'linux2' or 'linux3' depending on the Linux version used to build Python.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.3.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
index 79a53ff..0edf5ff 100644
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -274,8 +274,11 @@ Porting to Python 3.3
This section lists previously described changes and other bugfixes
that may require changes to your code:
-* Stub
-
+* Issue #12326: On Linux, sys.platform doesn't contain the major version
+ anymore. It is now always 'linux', instead of 'linux2' or 'linux3' depending
+ on the Linux version used to build Python. Replace sys.platform == 'linux2'
+ with sys.platform.startswith('linux'), or directly sys.platform == 'linux' if
+ you don't need to support older Python versions.
.. Issue #11591: When :program:`python` was started with :option:`-S`,
``import site`` will not add site-specific paths to the module search