summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2011-01-18 00:02:40 (GMT)
committerRaymond Hettinger <python@rcn.com>2011-01-18 00:02:40 (GMT)
commitca904be778f870f41cf404e49ecd52f0f13b6348 (patch)
treefa1aac57176a3c7f62f6488da4be8441eea8d1fc /Doc
parent1e6a173a2bc8fd5188e461982a01ac46a36bf2f4 (diff)
downloadcpython-ca904be778f870f41cf404e49ecd52f0f13b6348.zip
cpython-ca904be778f870f41cf404e49ecd52f0f13b6348.tar.gz
cpython-ca904be778f870f41cf404e49ecd52f0f13b6348.tar.bz2
Nits.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/whatsnew/3.2.rst22
1 files changed, 13 insertions, 9 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
index b65696d..11f325a 100644
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -55,6 +55,7 @@ focuses on a few highlights and gives a few examples. For full details, see the
:pep:`392` - Python 3.2 Release Schedule
+
PEP 384: Defining a Stable ABI
==============================
@@ -78,6 +79,7 @@ need to be recompiled for every feature release.
:pep:`384` - Defining a Stable ABI
PEP written by Martin von Löwis.
+
PEP 389: Argparse Command Line Parsing Module
=============================================
@@ -208,17 +210,19 @@ dictionary::
If that dictionary is stored in a file called :file:`conf.json`, it can be
loaded and called with code like this::
- import json
- import logging.config
- logging.config.dictConfig(json.load(open('conf.json', 'rb')))
- logging.info("Transaction completed normally")
- logging.critical("Abnormal termination")
+ >>> import json, logging.config
+ >>> with open('conf.json', 'rb') as f:
+ conf = json.load(f)
+ >>> logging.config.dictConfig(conf)
+ >>> logging.info("Transaction completed normally")
+ >>> logging.critical("Abnormal termination")
.. seealso::
:pep:`391` - Dictionary Based Configuration for Logging
PEP written by Vinay Sajip.
+
PEP 3148: The ``concurrent.futures`` module
============================================
@@ -277,7 +281,6 @@ launch of four parallel threads for copying files::
:class:`~concurrent.futures.ProcessPoolExecutor`.
-
PEP 3147: PYC Repository Directories
=====================================
@@ -369,6 +372,7 @@ module::
:pep:`3149` - ABI Version Tagged .so Files
PEP written by Barry Warsaw.
+
PEP 3333: Python Web Server Gateway Interface v1.0.1
=====================================================
@@ -415,6 +419,7 @@ this gap, the :mod:`wsgiref` module has a new function,
:pep:`3333` - Python Web Server Gateway Interface v1.0.1
PEP written by Phillip Eby.
+
Other Language Changes
======================
@@ -891,9 +896,8 @@ datetime and time
:class:`float` and divided by :class:`float` and :class:`int` objects.
And :class:`~datetime.timedelta` objects can now divide one another.
-* The :class:`~datetime.datetime` class and the :meth:`datetime.date.strftime`
- method are no longer restricted to years after 1900. The new supported year
- range is from 1000 to 9999 inclusive.
+* The :meth:`datetime.date.strftime` method is no longer restricted to years
+ after 1900. The new supported year range is from 1000 to 9999 inclusive.
* The rules for two-digit years in time tuples have changed. Now, the
:func:`time.asctime` and :func:`time.strftime` functions will format any year