From: Andrew M. Kuchling Date: Mon, 8 Feb 2010 13:22:24 +0000 (+0000) Subject: Add two items; move a subsection X-Git-Tag: v2.7a4~219 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e7123fbd47bf1c18182be76294f76ddce5b6a2e;p=python Add two items; move a subsection --- diff --git a/Doc/whatsnew/2.7.rst b/Doc/whatsnew/2.7.rst index 2f53a49a65..edc1f0d5a9 100644 --- a/Doc/whatsnew/2.7.rst +++ b/Doc/whatsnew/2.7.rst @@ -412,7 +412,10 @@ Some smaller changes made to the core Python language are: * 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 @@ changes, or look through the Subversion logs for all the details. 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 @@ allows specifying the user id and group that will own the files in the archives using the :option:`--owner` and :option:`--group` switches (:issue:`6516`). + Unit Testing Enhancements --------------------------------- @@ -1296,6 +1303,12 @@ Port-Specific Changes: Mac OS X 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