diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-09 10:12:11 +0000 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-09 10:12:11 +0000 |
commit | 0a7212dcde2bd03cb1a5a71c093db122d3d3d06d (patch) | |
tree | a8cd8f5c326f21dd89be9df584b00b6677335383 /Include/pyerrors.h | |
parent | 8facb225ddf8a98d893128ed529be4db8af56a0c (diff) | |
download | cpython-0a7212dcde2bd03cb1a5a71c093db122d3d3d06d.tar.gz |
Issue #9738: Document PyErr_SetString() and PyErr_SetFromErrnoWithFilename()
encodings
Diffstat (limited to 'Include/pyerrors.h')
-rw-r--r-- | Include/pyerrors.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h index fb9ce91a84..58a3df731e 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -60,7 +60,10 @@ typedef struct { PyAPI_FUNC(void) PyErr_SetNone(PyObject *); PyAPI_FUNC(void) PyErr_SetObject(PyObject *, PyObject *); -PyAPI_FUNC(void) PyErr_SetString(PyObject *, const char *); +PyAPI_FUNC(void) PyErr_SetString( + PyObject *exception, + const char *string /* decoded from utf-8 */ + ); PyAPI_FUNC(PyObject *) PyErr_Occurred(void); PyAPI_FUNC(void) PyErr_Clear(void); PyAPI_FUNC(void) PyErr_Fetch(PyObject **, PyObject **, PyObject **); @@ -177,7 +180,9 @@ PyAPI_FUNC(PyObject *) PyErr_SetFromErrno(PyObject *); PyAPI_FUNC(PyObject *) PyErr_SetFromErrnoWithFilenameObject( PyObject *, PyObject *); PyAPI_FUNC(PyObject *) PyErr_SetFromErrnoWithFilename( - PyObject *, const char *); + PyObject *exc, + const char *filename /* decoded from the filesystem encoding */ + ); #ifdef MS_WINDOWS PyAPI_FUNC(PyObject *) PyErr_SetFromErrnoWithUnicodeFilename( PyObject *, const Py_UNICODE *); |