Index: Python/sysmodule.c =================================================================== --- Python/sysmodule.c (revision 61467) +++ Python/sysmodule.c (working copy) @@ -169,6 +169,11 @@ static PyObject * sys_exc_clear(PyObject *self, PyObject *noargs) { + if(Py_Py3kWarningFlag && + PyErr_Warn(PyExc_DeprecationWarning, + "sys.exc_clear() not supported in 3.x. Use except statements.") < 0) + return NULL; + PyThreadState *tstate = PyThreadState_GET(); PyObject *tmp_type, *tmp_value, *tmp_tb; tmp_type = tstate->exc_type; Index: Misc/NEWS =================================================================== --- Misc/NEWS (revision 61467) +++ Misc/NEWS (working copy) @@ -12,6 +12,8 @@ Core and builtins ----------------- +- Issue #2358: Adding a Py3k warning on sys.exc_clear() usage. + - Issue #2321: use pymalloc for unicode object string data to reduce memory usage in some circumstances.