diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-06-21 14:12:16 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-06-21 14:12:16 (GMT) |
commit | cd881b850c95cdb410620f3acc6ebf37e5467192 (patch) | |
tree | 203862804b0075c74ee1c1ac06db51bef3ba3ba6 /Doc/c-api/import.rst | |
parent | 289dd19124734b973e6f43f13328dfeca979d685 (diff) | |
parent | 03863d2b290d0856d7647a0275a73b55b6589fa7 (diff) | |
download | cpython-cd881b850c95cdb410620f3acc6ebf37e5467192.zip cpython-cd881b850c95cdb410620f3acc6ebf37e5467192.tar.gz cpython-cd881b850c95cdb410620f3acc6ebf37e5467192.tar.bz2 |
Fixed documentation of functions with const char* arguments.
Diffstat (limited to 'Doc/c-api/import.rst')
-rw-r--r-- | Doc/c-api/import.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/import.rst b/Doc/c-api/import.rst index 01e0deb..bf1b495 100644 --- a/Doc/c-api/import.rst +++ b/Doc/c-api/import.rst @@ -39,7 +39,7 @@ Importing Modules behaviour isn't needed anymore. -.. c:function:: PyObject* PyImport_ImportModuleEx(char *name, PyObject *globals, PyObject *locals, PyObject *fromlist) +.. c:function:: PyObject* PyImport_ImportModuleEx(const char *name, PyObject *globals, PyObject *locals, PyObject *fromlist) .. index:: builtin: __import__ @@ -70,7 +70,7 @@ Importing Modules .. versionadded:: 3.3 -.. c:function:: PyObject* PyImport_ImportModuleLevel(char *name, PyObject *globals, PyObject *locals, PyObject *fromlist, int level) +.. c:function:: PyObject* PyImport_ImportModuleLevel(const char *name, PyObject *globals, PyObject *locals, PyObject *fromlist, int level) Similar to :c:func:`PyImport_ImportModuleLevelObject`, but the name is an UTF-8 encoded string instead of a Unicode object. |