summaryrefslogtreecommitdiffstats
path: root/Include/moduleobject.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-02-22 23:38:34 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-02-22 23:38:34 (GMT)
commitd7e76405c7c1afe830faf40646b704be5c51ad51 (patch)
treee96eb484781aa763700c7494e966847452dc84b3 /Include/moduleobject.h
parent42040fb66571cbd3929f3141d6841d2e4fe047a0 (diff)
downloadcpython-d7e76405c7c1afe830faf40646b704be5c51ad51.zip
cpython-d7e76405c7c1afe830faf40646b704be5c51ad51.tar.gz
cpython-d7e76405c7c1afe830faf40646b704be5c51ad51.tar.bz2
Issue #3080: document encoding used by import functions
Diffstat (limited to 'Include/moduleobject.h')
-rw-r--r--Include/moduleobject.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/moduleobject.h b/Include/moduleobject.h
index 338cf4b..7b2bf1c 100644
--- a/Include/moduleobject.h
+++ b/Include/moduleobject.h
@@ -12,7 +12,9 @@ PyAPI_DATA(PyTypeObject) PyModule_Type;
#define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type)
#define PyModule_CheckExact(op) (Py_TYPE(op) == &PyModule_Type)
-PyAPI_FUNC(PyObject *) PyModule_New(const char *);
+PyAPI_FUNC(PyObject *) PyModule_New(
+ const char *name /* UTF-8 encoded string */
+ );
PyAPI_FUNC(PyObject *) PyModule_GetDict(PyObject *);
PyAPI_FUNC(const char *) PyModule_GetName(PyObject *);
PyAPI_FUNC(const char *) PyModule_GetFilename(PyObject *);