[Python-checkins] python/dist/src/Python exceptions.c,1.30,1.31
nnorwitz@users.sourceforge.net
nnorwitz@users.sourceforge.net
Wed, 29 May 2002 08:54:56 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv13399/Python
Modified Files:
exceptions.c
Log Message:
As discussed on python-dev, add a mechanism to indicate features
that are in the process of deprecation (PendingDeprecationWarning).
Docs could be improved.
Index: exceptions.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/exceptions.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** exceptions.c 28 Mar 2002 20:57:51 -0000 1.30
--- exceptions.c 29 May 2002 15:54:54 -0000 1.31
***************
*** 111,114 ****
--- 111,115 ----
+-- UserWarning\n\
+-- DeprecationWarning\n\
+ +-- PendingDeprecationWarning\n\
+-- SyntaxWarning\n\
+-- OverflowWarning\n\
***************
*** 921,924 ****
--- 922,930 ----
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.";
***************
*** 988,991 ****
--- 994,998 ----
PyObject *PyExc_UserWarning;
PyObject *PyExc_DeprecationWarning;
+ PyObject *PyExc_PendingDeprecationWarning;
PyObject *PyExc_SyntaxWarning;
PyObject *PyExc_OverflowWarning;
***************
*** 1064,1067 ****
--- 1071,1076 ----
{"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,