diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-30 07:01:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-30 07:01:03 (GMT) |
commit | 84b8e92e463bd6a5174bd3e5a6543580f6319c57 (patch) | |
tree | d8aeb7d0360e2e538ccafb0ecd26ea52a58d7aff /Doc/c-api/module.rst | |
parent | 576def096ec7b64814e038f03290031f172886c3 (diff) | |
download | cpython-84b8e92e463bd6a5174bd3e5a6543580f6319c57.zip cpython-84b8e92e463bd6a5174bd3e5a6543580f6319c57.tar.gz cpython-84b8e92e463bd6a5174bd3e5a6543580f6319c57.tar.bz2 |
bpo-29918: Add missed "const" modifiers in C API documentation. (#846)
Diffstat (limited to 'Doc/c-api/module.rst')
-rw-r--r-- | Doc/c-api/module.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst index 7724350..bae0372 100644 --- a/Doc/c-api/module.rst +++ b/Doc/c-api/module.rst @@ -80,7 +80,7 @@ Module Objects .. versionadded:: 3.3 -.. c:function:: char* PyModule_GetName(PyObject *module) +.. c:function:: const char* PyModule_GetName(PyObject *module) Similar to :c:func:`PyModule_GetNameObject` but return the name encoded to ``'utf-8'``. @@ -112,7 +112,7 @@ Module Objects .. versionadded:: 3.2 -.. c:function:: char* PyModule_GetFilename(PyObject *module) +.. c:function:: const char* PyModule_GetFilename(PyObject *module) Similar to :c:func:`PyModule_GetFilenameObject` but return the filename encoded to 'utf-8'. @@ -146,11 +146,11 @@ or request "multi-phase initialization" by returning the definition struct itsel Always initialize this member to :const:`PyModuleDef_HEAD_INIT`. - .. c:member:: char* m_name + .. c:member:: const char *m_name Name for the new module. - .. c:member:: char* m_doc + .. c:member:: const char *m_doc Docstring for the module; usually a docstring variable created with :c:func:`PyDoc_STRVAR` is used. |