From c907de90d4fbf126f8dab188e039f8e4ec6c60ca Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Tue, 21 Aug 2012 00:53:06 +0200 Subject: [PATCH] Improved summary section in whatsnew --- Doc/whatsnew/3.3.rst | 48 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 41 insertions(+), 7 deletions(-) diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst index 3572946b860..f7a928adae5 100644 --- a/Doc/whatsnew/3.3.rst +++ b/Doc/whatsnew/3.3.rst @@ -53,17 +53,43 @@ This article explains the new features in Python 3.3, compared to 3.2. release, so it's worth checking back even after reading earlier versions. -Summary -======= +Summary -- Release highlights +============================= -Major changes since Python 3.2: +.. This section singles out the most important changes in Python 3.3. + Brevity is key. - * 4 new modules: :mod:`faulthandler`, :mod:`ipaddress`, :mod:`lzma` and :mod:`venv`. - * Syntax changes: +New syntax features: - - ``u'unicode'`` syntax is accepted again - - Add ``yield from`` syntax +* New ``yield from`` expression for :ref:`generator delegation `. +* The ``u'unicode'`` syntax is accepted again for :class:`str` objects. +New library modules: + +* :mod:`faulthandler` (helps debugging low-level crashes) +* :mod:`ipaddress` (high-level objects representing IP addresses and masks) +* :mod:`lzma` (compress data using the XZ / LZMA algorithm) +* :mod:`venv` (Python :ref:`virtual environments `, as in the + popular ``virtualenv`` package) + +New built-in features: + +* Reworked :ref:`I/O exception hierarchy `. + +Implementation improvements: + +* Rewritten :ref:`import machinery ` based on :mod:`importlib`. +* More compact :ref:`unicode strings `. +* More compact :ref:`attribute dictionaries `. + +Security improvements: + +* Hash randomization is switched on by default. + +Please read on for a comprehensive list of user-facing changes. + + +.. _pep-405: PEP 405: Virtual Environments ============================= @@ -220,6 +246,8 @@ bit better than Python 2.7, on a Django benchmark (see the PEP for details). +.. _pep-3151: + PEP 3151: Reworking the OS and IO exception hierarchy ===================================================== @@ -288,6 +316,8 @@ inspection of exception attributes:: print("You are not allowed to read document.txt") +.. _pep-380: + PEP 380: Syntax for Delegating to a Subgenerator ================================================ @@ -489,6 +519,8 @@ new, more precise information:: '' +.. _pep-412: + PEP 412: Key-Sharing Dictionary =============================== @@ -518,6 +550,8 @@ which considerably simplifies writing decorators and any code that validates or amends calling signatures or arguments. +.. _importlib: + Using importlib as the Implementation of Import =============================================== :issue:`2377` - Replace __import__ w/ importlib.__import__