Mark PEP 3110 as final.
This commit is contained in:
parent
dea9d362fc
commit
cca1217062
|
@ -77,7 +77,6 @@ Index by Category
|
||||||
SA 358 The "bytes" Object Schemenauer, GvR
|
SA 358 The "bytes" Object Schemenauer, GvR
|
||||||
SA 3106 Revamping dict.keys(), .values() & .items() GvR
|
SA 3106 Revamping dict.keys(), .values() & .items() GvR
|
||||||
SA 3109 Raising Exceptions in Python 3000 Winter
|
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 3111 Simple input built-in in Python 3000 Roberge
|
||||||
SA 3112 Bytes literals in Python 3000 Orendorff
|
SA 3112 Bytes literals in Python 3000 Orendorff
|
||||||
SA 3115 Metaclasses in Python 3000 Talin
|
SA 3115 Metaclasses in Python 3000 Talin
|
||||||
|
@ -174,6 +173,7 @@ Index by Category
|
||||||
SF 3104 Access to Names in Outer Scopes Yee
|
SF 3104 Access to Names in Outer Scopes Yee
|
||||||
SF 3105 Make print a function Brandl
|
SF 3105 Make print a function Brandl
|
||||||
SF 3107 Function Annotations Winter, Lownds
|
SF 3107 Function Annotations Winter, Lownds
|
||||||
|
SF 3110 Catching Exceptions in Python 3000 Winter
|
||||||
SF 3113 Removal of Tuple Parameter Unpacking Cannon
|
SF 3113 Removal of Tuple Parameter Unpacking Cannon
|
||||||
SF 3114 Renaming iterator.next() to .__next__() Yee
|
SF 3114 Renaming iterator.next() to .__next__() Yee
|
||||||
SF 3129 Class Decorators Winter
|
SF 3129 Class Decorators Winter
|
||||||
|
@ -480,7 +480,7 @@ Numerical Index
|
||||||
SF 3107 Function Annotations Winter, Lownds
|
SF 3107 Function Annotations Winter, Lownds
|
||||||
S 3108 Standard Library Reorganization Cannon
|
S 3108 Standard Library Reorganization Cannon
|
||||||
SA 3109 Raising Exceptions in Python 3000 Winter
|
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 3111 Simple input built-in in Python 3000 Roberge
|
||||||
SA 3112 Bytes literals in Python 3000 Orendorff
|
SA 3112 Bytes literals in Python 3000 Orendorff
|
||||||
SF 3113 Removal of Tuple Parameter Unpacking Cannon
|
SF 3113 Removal of Tuple Parameter Unpacking Cannon
|
||||||
|
|
40
pep-3110.txt
40
pep-3110.txt
|
@ -3,7 +3,7 @@ Title: Catching Exceptions in Python 3000
|
||||||
Version: $Revision$
|
Version: $Revision$
|
||||||
Last-Modified: $Date$
|
Last-Modified: $Date$
|
||||||
Author: Collin Winter <collinw@gmail.com>
|
Author: Collin Winter <collinw@gmail.com>
|
||||||
Status: Accepted
|
Status: Final
|
||||||
Type: Standards Track
|
Type: Standards Track
|
||||||
Content-Type: text/x-rst
|
Content-Type: text/x-rst
|
||||||
Created: 16-Jan-2006
|
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
|
``sys.exc_info()[2]`` respectively, a transformation that can be
|
||||||
performed by ``2to3``'s ``sysexcattrs`` fixer.
|
performed by ``2to3``'s ``sysexcattrs`` fixer.
|
||||||
|
|
||||||
|
2.6 - 3.0 Compatibility
|
||||||
|
-----------------------
|
||||||
|
|
||||||
Open Issues
|
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" 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 ::
|
|
||||||
|
|
||||||
except_clause: 'except' [test [',' test]]
|
except_clause: 'except' [test [',' test]]
|
||||||
|
|
||||||
to ::
|
to::
|
||||||
|
|
||||||
except_clause: 'except' [test [('as' | ',') test]]
|
except_clause: 'except' [test [('as' | ',') test]]
|
||||||
|
|
||||||
It has not been decided whether the proposed end-of-suite cleanup
|
The end-of-suite cleanup semantic for ``except`` statements will not be
|
||||||
semantic for ``except`` statements should be included in the 2.x
|
included in the 2.x series of releases.
|
||||||
series.
|
|
||||||
|
|
||||||
|
|
||||||
|
Open Issues
|
||||||
|
===========
|
||||||
|
|
||||||
Replacing or Dropping "sys.exc_info()"
|
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()``.
|
are defined in terms of ``sys.exc_info()``.
|
||||||
|
|
||||||
|
|
||||||
|
Implementation
|
||||||
|
==============
|
||||||
|
|
||||||
|
This PEP was implemented in revisions 53342 [#r53342]_ and 53349
|
||||||
|
[#r53349]_.
|
||||||
|
|
||||||
|
|
||||||
References
|
References
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
@ -269,6 +273,12 @@ References
|
||||||
.. [#replace-excinfo]
|
.. [#replace-excinfo]
|
||||||
http://mail.python.org/pipermail/python-3000/2007-January/005604.html
|
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
|
Copyright
|
||||||
=========
|
=========
|
||||||
|
|
Loading…
Reference in New Issue