diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-12-27 01:49:26 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-12-27 01:49:26 (GMT) |
commit | 555a24f206e4d310feb55ddb03cb7eba12d901e7 (patch) | |
tree | 3840f77bb69e7d857c4dc6ec9beed57b6da8b44c /Include/warnings.h | |
parent | ab9d8d64a71d3c431e99d6ccf0a3e696b24d4a6a (diff) | |
download | cpython-555a24f206e4d310feb55ddb03cb7eba12d901e7.zip cpython-555a24f206e4d310feb55ddb03cb7eba12d901e7.tar.gz cpython-555a24f206e4d310feb55ddb03cb7eba12d901e7.tar.bz2 |
Issue #9738: Document encodings of error and warning functions
Diffstat (limited to 'Include/warnings.h')
-rw-r--r-- | Include/warnings.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/Include/warnings.h b/Include/warnings.h index 82abb11..7553a25 100644 --- a/Include/warnings.h +++ b/Include/warnings.h @@ -8,10 +8,22 @@ extern "C" { PyAPI_FUNC(PyObject*) _PyWarnings_Init(void); #endif -PyAPI_FUNC(int) PyErr_WarnEx(PyObject *, const char *, Py_ssize_t); -PyAPI_FUNC(int) PyErr_WarnFormat(PyObject *, Py_ssize_t, const char *, ...); -PyAPI_FUNC(int) PyErr_WarnExplicit(PyObject *, const char *, const char *, int, - const char *, PyObject *); +PyAPI_FUNC(int) PyErr_WarnEx( + PyObject *category, + const char *message, /* UTF-8 encoded string */ + Py_ssize_t stack_level); +PyAPI_FUNC(int) PyErr_WarnFormat( + PyObject *category, + Py_ssize_t stack_level, + const char *format, /* ASCII-encoded string */ + ...); +PyAPI_FUNC(int) PyErr_WarnExplicit( + PyObject *category, + const char *message, /* UTF-8 encoded string */ + const char *filename, /* UTF-8 encoded string */ + int lineno, + const char *module, /* UTF-8 encoded string */ + PyObject *registry); /* DEPRECATED: Use PyErr_WarnEx() instead. */ #ifndef Py_LIMITED_API |