From 8f61b22a5deac9d0e37cedf4f8749c8d65f87879 Mon Sep 17 00:00:00 2001 From: Collin Winter Date: Sat, 10 Feb 2007 01:17:29 +0000 Subject: [PATCH] Add sys.exc_clear for removal --- pep-3100.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pep-3100.txt b/pep-3100.txt index 7952b3dcb..8fe87b710 100644 --- a/pep-3100.txt +++ b/pep-3100.txt @@ -218,6 +218,8 @@ To be removed: * ``sys.exc_type``, ``sys.exc_values``, ``sys.exc_traceback``: not thread-safe; use ``sys.exc_info()`` or an attribute of the exception [2]_ [11]_ [#sys-module]_ +* ``sys.exc_clear``: Python 3's except statements provide the same + functionality [24]_ [#pep3110]_ [#sys-module]_ * ``array.read``, ``array.write`` [#array-module]_ * ``operator.isCallable`` : ``callable()`` built-in is being removed [#operator-module]_ @@ -312,6 +314,9 @@ References .. [23] python-3000 email ("__nonzero__ vs. __bool__") http://mail.python.org/pipermail/python-3000/2006-November/004524.html + +.. [24] python-3000 email ("Pre-peps on raise and except changes") + http://mail.python.org/pipermail/python-3000/2007-February/005672.html .. [#sys-module] Python docs (sys -- System-specific parameters and functions) http://docs.python.org/lib/module-sys.html @@ -363,6 +368,9 @@ References .. [#pep3107] PEP 3107 (Function Annotations) http://www.python.org/dev/peps/pep-3107 + +.. [#pep3110] PEP 3110 (Catching Exceptions in Python 3000) + http://www.python.org/dev/peps/pep-3110/#semantic-changes Copyright