diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-04 12:57:09 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-04 12:57:09 (GMT) |
commit | 27ee089c35144fe1350f5f411051d5d3ecb88b6c (patch) | |
tree | daab0428b722f5f639f0de24b9a64d7d2222465c /Include/import.h | |
parent | 0639b56672112e69a1d55c0105dae9198f757ec2 (diff) | |
download | cpython-27ee089c35144fe1350f5f411051d5d3ecb88b6c.zip cpython-27ee089c35144fe1350f5f411051d5d3ecb88b6c.tar.gz cpython-27ee089c35144fe1350f5f411051d5d3ecb88b6c.tar.bz2 |
Issue #3080: Add PyImport_AddModuleObject() and PyImport_ExecCodeModuleObject()
Diffstat (limited to 'Include/import.h')
-rw-r--r-- | Include/import.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/import.h b/Include/import.h index 26e1f0f..f2d79b8 100644 --- a/Include/import.h +++ b/Include/import.h @@ -24,7 +24,16 @@ PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleWithPathnames( char *pathname, /* decoded from the filesystem encoding */ char *cpathname /* decoded from the filesystem encoding */ ); +PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleObject( + PyObject *name, + PyObject *co, + PyObject *pathname, + PyObject *cpathname + ); PyAPI_FUNC(PyObject *) PyImport_GetModuleDict(void); +PyAPI_FUNC(PyObject *) PyImport_AddModuleObject( + PyObject *name + ); PyAPI_FUNC(PyObject *) PyImport_AddModule( const char *name /* UTF-8 encoded string */ ); |