aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-08-17 23:37:11 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2010-08-17 23:37:11 +0000
commit6c00c1464f03deaafbbd5fdd212514cbf36b9bd4 (patch)
tree6928203bf836291bb890f9ebdfb7d71ac670ca98 /Include/moduleobject.h
parentCorrect library name that Ask will work on. (diff)
downloadcpython-6c00c1464f03deaafbbd5fdd212514cbf36b9bd4.tar.gz
cpython-6c00c1464f03deaafbbd5fdd212514cbf36b9bd4.tar.bz2
cpython-6c00c1464f03deaafbbd5fdd212514cbf36b9bd4.zip
Issue #9425: Create PyModule_GetFilenameObject() function
... to get the filename as a unicode object, instead of a byte string. Function needed to support unencodable filenames. Deprecate PyModule_GetFilename() in favor on the new function.
Diffstat (limited to 'Include/moduleobject.h')
-rw-r--r--Include/moduleobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/moduleobject.h b/Include/moduleobject.h
index 42eac82e950..376a525d1c3 100644
--- a/Include/moduleobject.h
+++ b/Include/moduleobject.h
@@ -16,6 +16,7 @@ PyAPI_FUNC(PyObject *) PyModule_New(const char *);
PyAPI_FUNC(PyObject *) PyModule_GetDict(PyObject *);
PyAPI_FUNC(const char *) PyModule_GetName(PyObject *);
PyAPI_FUNC(const char *) PyModule_GetFilename(PyObject *);
+PyAPI_FUNC(PyObject *) PyModule_GetFilenameObject(PyObject *);
PyAPI_FUNC(void) _PyModule_Clear(PyObject *);
PyAPI_FUNC(struct PyModuleDef*) PyModule_GetDef(PyObject*);
PyAPI_FUNC(void*) PyModule_GetState(PyObject*);