From d68f5171ebb2f3404548c846523e9e43308a4130 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Wed, 29 May 2002 15:54:55 +0000 Subject: As discussed on python-dev, add a mechanism to indicate features that are in the process of deprecation (PendingDeprecationWarning). Docs could be improved. --- Python/exceptions.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Python/exceptions.c') diff --git a/Python/exceptions.c b/Python/exceptions.c index 607d5cf57c..bd8f55db10 100644 --- a/Python/exceptions.c +++ b/Python/exceptions.c @@ -110,6 +110,7 @@ Exception\n\ |\n\ +-- UserWarning\n\ +-- DeprecationWarning\n\ + +-- PendingDeprecationWarning\n\ +-- SyntaxWarning\n\ +-- OverflowWarning\n\ +-- RuntimeWarning"; @@ -919,6 +920,11 @@ static char DeprecationWarning__doc__[] = "Base class for warnings about deprecated features."; +static char +PendingDeprecationWarning__doc__[] = +"Base class for warnings about features which will be deprecated " +"in the future."; + static char SyntaxWarning__doc__[] = "Base class for warnings about dubious syntax."; @@ -987,6 +993,7 @@ PyObject *PyExc_MemoryErrorInst; PyObject *PyExc_Warning; PyObject *PyExc_UserWarning; PyObject *PyExc_DeprecationWarning; +PyObject *PyExc_PendingDeprecationWarning; PyObject *PyExc_SyntaxWarning; PyObject *PyExc_OverflowWarning; PyObject *PyExc_RuntimeWarning; @@ -1063,6 +1070,8 @@ static struct { {"UserWarning", &PyExc_UserWarning, &PyExc_Warning, UserWarning__doc__}, {"DeprecationWarning", &PyExc_DeprecationWarning, &PyExc_Warning, DeprecationWarning__doc__}, + {"PendingDeprecationWarning", &PyExc_PendingDeprecationWarning, &PyExc_Warning, + PendingDeprecationWarning__doc__}, {"SyntaxWarning", &PyExc_SyntaxWarning, &PyExc_Warning, SyntaxWarning__doc__}, {"OverflowWarning", &PyExc_OverflowWarning, &PyExc_Warning, OverflowWarning__doc__}, -- cgit v1.2.1