diff Include/moduleobject.h @ 64138:ee765a67c0b1

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.
author Victor Stinner <victor.stinner@haypocalc.com>
date Tue, 17 Aug 2010 23:37:11 +0000
parents 94f64f11fdd0
children d8cc95d7de62
line wrap: on
line diff
--- a/Include/moduleobject.h	Tue Aug 17 23:16:51 2010 +0000
+++ b/Include/moduleobject.h	Tue Aug 17 23:37:11 2010 +0000
@@ -16,6 +16,7 @@
 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*);