diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-21 13:42:28 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-10-21 13:42:28 (GMT) |
commit | 9583cac6337f9a5f2670fbe5e1f2e85aaad04522 (patch) | |
tree | 219c579de12fb04e6239ff11d548bfa454b6f135 /Include | |
parent | 6d61cb4d2fc1cd0b412bdf0cf15337751e56f0d2 (diff) | |
download | cpython-9583cac6337f9a5f2670fbe5e1f2e85aaad04522.zip cpython-9583cac6337f9a5f2670fbe5e1f2e85aaad04522.tar.gz cpython-9583cac6337f9a5f2670fbe5e1f2e85aaad04522.tar.bz2 |
Issue #10089: Add support for arbitrary -X options on the command-line.
They can be retrieved through a new attribute `sys._xoptions`.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/sysmodule.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/sysmodule.h b/Include/sysmodule.h index e43f378..c00901b 100644 --- a/Include/sysmodule.h +++ b/Include/sysmodule.h @@ -27,6 +27,9 @@ PyAPI_FUNC(void) PySys_AddWarnOption(const wchar_t *); PyAPI_FUNC(void) PySys_AddWarnOptionUnicode(PyObject *); PyAPI_FUNC(int) PySys_HasWarnOptions(void); +PyAPI_FUNC(void) PySys_AddXOption(const wchar_t *); +PyAPI_FUNC(PyObject *) PySys_GetXOptions(void); + #ifdef __cplusplus } #endif |