diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-08-17 23:37:11 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-08-17 23:37:11 (GMT) |
commit | 6c00c1464f03deaafbbd5fdd212514cbf36b9bd4 (patch) | |
tree | 6928203bf836291bb890f9ebdfb7d71ac670ca98 /Include | |
parent | 6951157475dd22893a2c5813cbbdac63de5c043f (diff) | |
download | cpython-6c00c1464f03deaafbbd5fdd212514cbf36b9bd4.zip cpython-6c00c1464f03deaafbbd5fdd212514cbf36b9bd4.tar.gz cpython-6c00c1464f03deaafbbd5fdd212514cbf36b9bd4.tar.bz2 |
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')
-rw-r--r-- | Include/moduleobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/moduleobject.h b/Include/moduleobject.h index 42eac82..376a525 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*); |