diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-20 00:50:21 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-20 00:50:21 (GMT) |
commit | 53dc735168c876b5ed2e4553965014b07c03904e (patch) | |
tree | b0e1b62f23c2685564485e4ceb7d637ed7f1bd0e /Include/import.h | |
parent | 9464d61cbab6560e9c8f7278c701cfe47d5287fa (diff) | |
download | cpython-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/import.h')
-rw-r--r-- | Include/import.h | 3 |
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 */ ); |