diff Include/pyerrors.h @ 65624:39b9e9de372b

Add a new warning gategory, ResourceWarning, as discussed on python-dev. It is silent by default, except when configured --with-pydebug. Emit this warning from the GC shutdown procedure, rather than just printing to stderr.
author Georg Brandl <georg@python.org>
date Sun, 24 Oct 2010 15:11:22 +0000
parents 0c4884db53e0
children 1b7a0385c65f
line wrap: on
line diff
--- a/Include/pyerrors.h	Sun Oct 24 14:32:45 2010 +0000
+++ b/Include/pyerrors.h	Sun Oct 24 15:11:22 2010 +0000
@@ -170,6 +170,7 @@
 PyAPI_DATA(PyObject *) PyExc_ImportWarning;
 PyAPI_DATA(PyObject *) PyExc_UnicodeWarning;
 PyAPI_DATA(PyObject *) PyExc_BytesWarning;
+PyAPI_DATA(PyObject *) PyExc_ResourceWarning;
 
 
 /* Convenience functions */