diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-19 16:53:30 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-05-19 16:53:30 (GMT) |
commit | 9ca9c25bcd9d4b771be6fee34a105546d1c8d666 (patch) | |
tree | 1fcc4adff5bc504e451b760d87d30665668e14d7 /Doc/c-api | |
parent | a5bf3f520c6d899b133b0526a551c279639a7851 (diff) | |
download | cpython-9ca9c25bcd9d4b771be6fee34a105546d1c8d666.zip cpython-9ca9c25bcd9d4b771be6fee34a105546d1c8d666.tar.gz cpython-9ca9c25bcd9d4b771be6fee34a105546d1c8d666.tar.bz2 |
Issue #8589: Decode PYTHONWARNINGS environment variable with the file system
encoding and surrogateespace error handler instead of the locale encoding to be
consistent with os.environ. Add PySys_AddWarnOptionUnicode() function.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/sys.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/c-api/sys.rst b/Doc/c-api/sys.rst index adadfe5..bc4cbae 100644 --- a/Doc/c-api/sys.rst +++ b/Doc/c-api/sys.rst @@ -81,6 +81,10 @@ accessible to C code. They all work with the current interpreter thread's Append *s* to :data:`sys.warnoptions`. +.. cfunction:: void PySys_AddWarnOptionUnicode(PyObject *unicode) + + Append *unicode* to :data:`sys.warnoptions`. + .. cfunction:: void PySys_SetPath(wchar_t *path) Set :data:`sys.path` to a list object of paths found in *path* which should |