summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-03-20 00:50:21 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-03-20 00:50:21 (GMT)
commit53dc735168c876b5ed2e4553965014b07c03904e (patch)
treeb0e1b62f23c2685564485e4ceb7d637ed7f1bd0e /Include
parent9464d61cbab6560e9c8f7278c701cfe47d5287fa (diff)
downloadcpython-53dc735168c876b5ed2e4553965014b07c03904e.zip
cpython-53dc735168c876b5ed2e4553965014b07c03904e.tar.gz
cpython-53dc735168c876b5ed2e4553965014b07c03904e.tar.bz2
Issue #3080: Add PyImport_ImportFrozenModuleObject()
find_frozen(), get_frozen_object(), is_frozen_package() and other functions related to frozen modules use Unicode strings instead of byte strings.
Diffstat (limited to 'Include')
-rw-r--r--Include/import.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/import.h b/Include/import.h
index f2d79b8..2d45238 100644
--- a/Include/import.h
+++ b/Include/import.h
@@ -58,6 +58,9 @@ PyAPI_FUNC(PyObject *) PyImport_GetImporter(PyObject *path);
PyAPI_FUNC(PyObject *) PyImport_Import(PyObject *name);
PyAPI_FUNC(PyObject *) PyImport_ReloadModule(PyObject *m);
PyAPI_FUNC(void) PyImport_Cleanup(void);
+PyAPI_FUNC(int) PyImport_ImportFrozenModuleObject(
+ PyObject *name
+ );
PyAPI_FUNC(int) PyImport_ImportFrozenModule(
char *name /* UTF-8 encoded string */
);