[Python-checkins] r78104 - python/trunk/Doc/whatsnew/2.7.rst

andrew.kuchling python-checkins at python.org
Mon Feb 8 14:22:24 CET 2010


Author: andrew.kuchling
Date: Mon Feb  8 14:22:24 2010
New Revision: 78104

Log:
Add two items; move a subsection

Modified:
   python/trunk/Doc/whatsnew/2.7.rst

Modified: python/trunk/Doc/whatsnew/2.7.rst
==============================================================================
--- python/trunk/Doc/whatsnew/2.7.rst	(original)
+++ python/trunk/Doc/whatsnew/2.7.rst	Mon Feb  8 14:22:24 2010
@@ -412,7 +412,10 @@
 
 * The :class:`file` object will now set the :attr:`filename` attribute
   on the :exc:`IOError` exception when trying to open a directory
-  on POSIX platforms.  (Noted by Jan Kaliszewski; :issue:`4764`.)
+  on POSIX platforms (noted by Jan Kaliszewski; :issue:`4764`), and
+  now explicitly checks for and forbids writing to read-only file objects
+  instead of trusting the C library to catch and report the error
+  (fixed by Stefan Krah; :issue:`5677`).
 
 * The Python tokenizer now translates line endings itself, so the
   :func:`compile` built-in function can now accept code using any
@@ -896,15 +899,18 @@
   accepts a file object, in addition to the path names accepted in earlier
   versions.  (Contributed by Gabriel Genellina; :issue:`4756`.)
 
-.. ======================================================================
-.. whole new modules get described in subsections here
+New module: sysconfig
+---------------------------------
+
+XXX A new :mod:`sysconfig` module has been extracted from
+:mod:`distutils` and put in the standard library.
 
-* XXX A new :mod:`sysconfig` module has been extracted from :mod:`distutils`
-  and put in the standard library.
+The :mod:`sysconfig` module provides access to Python's configuration
+information like the list of installation paths and the configuration
+variables relevant for the current platform.
 
-  The :mod:`sysconfig` module provides access to Python's configuration
-  information like the list of installation paths and the configuration
-  variables relevant for the current platform.
+.. ======================================================================
+.. whole new modules get described in subsections here
 
 
 Distutils Enhancements
@@ -955,6 +961,7 @@
 archives using the :option:`--owner` and :option:`--group` switches
 (:issue:`6516`).
 
+
 Unit Testing Enhancements
 ---------------------------------
 
@@ -1296,6 +1303,12 @@
 Other Changes and Fixes
 =======================
 
+* Two benchmark scripts, :file:`iobench` and :file:`ccbench`, were
+  added to the :file:`Tools` directory.  :file:`iobench` measures the
+  speed of the built-in :class:`file` objects while performing various
+  operations, and :file:`ccbench` is a concurrency that performs
+  several tasks using a varying number of threads.
+
 * When importing a module from a :file:`.pyc` or :file:`.pyo` file
   with an existing :file:`.py` counterpart, the :attr:`co_filename`
   attributes of the resulting code objects are overwritten when the


More information about the Python-checkins mailing list