From 9c2cb031b82da2c770d0cdff6ab673c35ae577d5 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 6 Aug 2005 23:13:59 +0000 Subject: [PATCH] Mention plan to remove ``raise Exception, "message"`` style of raising exceptions. --- pep-3000.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pep-3000.txt b/pep-3000.txt index 8a2b4c949..cc0d6adb4 100644 --- a/pep-3000.txt +++ b/pep-3000.txt @@ -67,6 +67,7 @@ To be removed: * The ``lambda`` statement: use nested or named functions [1]_, [9]_ * String exceptions: use instances of an Exception class [2]_ +* ``raise Exception, "message"``: use ``raise Exception("message")`` [14]_ * ```x```: use ``repr(x)`` [2]_ * The ``<>`` operator: use ``!=`` instead [3]_ * Unbound methods [7]_ @@ -153,6 +154,9 @@ References .. [13] python-dev email ("anonymous blocks") http://mail.python.org/pipermail/python-dev/2005-April/053060.html +.. [14] python-dev email ("PEP 8: exception style") + http://mail.python.org/pipermail/python-dev/2005-August/055190.html + Copyright =========