summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/sys.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-06-21 14:12:16 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-06-21 14:12:16 (GMT)
commitcd881b850c95cdb410620f3acc6ebf37e5467192 (patch)
tree203862804b0075c74ee1c1ac06db51bef3ba3ba6 /Doc/c-api/sys.rst
parent289dd19124734b973e6f43f13328dfeca979d685 (diff)
parent03863d2b290d0856d7647a0275a73b55b6589fa7 (diff)
downloadcpython-cd881b850c95cdb410620f3acc6ebf37e5467192.zip
cpython-cd881b850c95cdb410620f3acc6ebf37e5467192.tar.gz
cpython-cd881b850c95cdb410620f3acc6ebf37e5467192.tar.bz2
Fixed documentation of functions with const char* arguments.
Diffstat (limited to 'Doc/c-api/sys.rst')
-rw-r--r--Doc/c-api/sys.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/sys.rst b/Doc/c-api/sys.rst
index a6a939c..3d83b27 100644
--- a/Doc/c-api/sys.rst
+++ b/Doc/c-api/sys.rst
@@ -110,12 +110,12 @@ These are utility functions that make functionality from the :mod:`sys` module
accessible to C code. They all work with the current interpreter thread's
:mod:`sys` module's dict, which is contained in the internal thread state structure.
-.. c:function:: PyObject *PySys_GetObject(char *name)
+.. c:function:: PyObject *PySys_GetObject(const char *name)
Return the object *name* from the :mod:`sys` module or *NULL* if it does
not exist, without setting an exception.
-.. c:function:: int PySys_SetObject(char *name, PyObject *v)
+.. c:function:: int PySys_SetObject(const char *name, PyObject *v)
Set *name* in the :mod:`sys` module to *v* unless *v* is *NULL*, in which
case *name* is deleted from the sys module. Returns ``0`` on success, ``-1``