diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2010-02-08 13:22:24 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2010-02-08 13:22:24 (GMT) |
commit | 0e7123fbd47bf1c18182be76294f76ddce5b6a2e (patch) | |
tree | 79c62cc023f002fc3c36326c4e362a60dc8b339c /Doc/whatsnew | |
parent | 7ed8001862483633eca24f30499116f1d41c6758 (diff) | |
download | cpython-0e7123fbd47bf1c18182be76294f76ddce5b6a2e.zip cpython-0e7123fbd47bf1c18182be76294f76ddce5b6a2e.tar.gz cpython-0e7123fbd47bf1c18182be76294f76ddce5b6a2e.tar.bz2 |
Add two items; move a subsection
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/2.7.rst | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/Doc/whatsnew/2.7.rst b/Doc/whatsnew/2.7.rst index 2f53a49..edc1f0d 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 |