From cca12170620bcdcb75606b0b9156b6b66279bc22 Mon Sep 17 00:00:00 2001 From: Collin Winter Date: Fri, 18 May 2007 20:30:49 +0000 Subject: [PATCH] Mark PEP 3110 as final. --- pep-0000.txt | 4 ++-- pep-3110.txt | 40 +++++++++++++++++++++++++--------------- 2 files changed, 27 insertions(+), 17 deletions(-) diff --git a/pep-0000.txt b/pep-0000.txt index 155a210cb..3bdc9f5cd 100644 --- a/pep-0000.txt +++ b/pep-0000.txt @@ -77,7 +77,6 @@ Index by Category SA 358 The "bytes" Object Schemenauer, GvR SA 3106 Revamping dict.keys(), .values() & .items() GvR SA 3109 Raising Exceptions in Python 3000 Winter - SA 3110 Catching Exceptions in Python 3000 Winter SA 3111 Simple input built-in in Python 3000 Roberge SA 3112 Bytes literals in Python 3000 Orendorff SA 3115 Metaclasses in Python 3000 Talin @@ -174,6 +173,7 @@ Index by Category SF 3104 Access to Names in Outer Scopes Yee SF 3105 Make print a function Brandl SF 3107 Function Annotations Winter, Lownds + SF 3110 Catching Exceptions in Python 3000 Winter SF 3113 Removal of Tuple Parameter Unpacking Cannon SF 3114 Renaming iterator.next() to .__next__() Yee SF 3129 Class Decorators Winter @@ -480,7 +480,7 @@ Numerical Index SF 3107 Function Annotations Winter, Lownds S 3108 Standard Library Reorganization Cannon SA 3109 Raising Exceptions in Python 3000 Winter - SA 3110 Catching Exceptions in Python 3000 Winter + SF 3110 Catching Exceptions in Python 3000 Winter SA 3111 Simple input built-in in Python 3000 Roberge SA 3112 Bytes literals in Python 3000 Orendorff SF 3113 Removal of Tuple Parameter Unpacking Cannon diff --git a/pep-3110.txt b/pep-3110.txt index c5230ade2..62c8a3b10 100644 --- a/pep-3110.txt +++ b/pep-3110.txt @@ -3,7 +3,7 @@ Title: Catching Exceptions in Python 3000 Version: $Revision$ Last-Modified: $Date$ Author: Collin Winter -Status: Accepted +Status: Final Type: Standards Track Content-Type: text/x-rst Created: 16-Jan-2006 @@ -185,29 +185,26 @@ replaced with ``sys.exc_info()[0]``, ``sys.exc_info()[1]`` and ``sys.exc_info()[2]`` respectively, a transformation that can be performed by ``2to3``'s ``sysexcattrs`` fixer. +2.6 - 3.0 Compatibility +----------------------- -Open Issues -=========== - -"except" Statements in Python 2.x ------------------------------------ - -It has been proposed that the grammar for ``except`` statements be -changed to accommodate both Python 2's ``,`` and Python 3's ``as`` -between the statement's type and target portions. The grammar -would thus change from :: +In order to facilitate forwards compatibility between Python 2.6 and 3.0, +the ``except ... as ...:`` syntax will be backported to the 2.x series. The +grammar will thus change from:: except_clause: 'except' [test [',' test]] -to :: +to:: except_clause: 'except' [test [('as' | ',') test]] -It has not been decided whether the proposed end-of-suite cleanup -semantic for ``except`` statements should be included in the 2.x -series. +The end-of-suite cleanup semantic for ``except`` statements will not be +included in the 2.x series of releases. +Open Issues +=========== + Replacing or Dropping "sys.exc_info()" -------------------------------------- @@ -224,6 +221,13 @@ not address the need to rewrite the documentation for all APIs that are defined in terms of ``sys.exc_info()``. +Implementation +============== + +This PEP was implemented in revisions 53342 [#r53342]_ and 53349 +[#r53349]_. + + References ========== @@ -268,6 +272,12 @@ References .. [#replace-excinfo] http://mail.python.org/pipermail/python-3000/2007-January/005604.html + +.. [#r53342] + http://svn.python.org/view/python/branches/p3yk/?view=rev&rev=53342 + +.. [#r53349] + http://svn.python.org/view/python/branches/p3yk/?view=rev&rev=53349 Copyright