Mercurial > cpython-lru_cache-weakref
diff Include/pyerrors.h @ 85502:bfaf3a2907bd
Factor-out the common code for setting a KeyError.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Mon, 02 Sep 2013 15:59:26 -0700 |
| parents | df2fdd42b375 |
| children | 19954e5dbef5 |
line wrap: on
line diff
--- a/Include/pyerrors.h Mon Sep 02 08:57:21 2013 -0700 +++ b/Include/pyerrors.h Mon Sep 02 15:59:26 2013 -0700 @@ -75,6 +75,7 @@ PyAPI_FUNC(void) PyErr_SetNone(PyObject *); PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *); +PyAPI_FUNC(void) _PyErr_SetKeyError(PyObject *); PyAPI_FUNC(void) PyErr_SetString( PyObject *exception, const char *string /* decoded from utf-8 */
