diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-04 12:57:07 +0000 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-04 12:57:07 +0000 |
commit | 0639b56672112e69a1d55c0105dae9198f757ec2 (patch) | |
tree | e98517568ca1ddb7932018f6f0c88a732ff1d2a7 /Include/moduleobject.h | |
parent | 3a9559b844153c4fe8584d129d88fa8f0a396944 (diff) | |
download | cpython-git-0639b56672112e69a1d55c0105dae9198f757ec2.tar.gz |
Issue #3080: Add PyModule_NewObject() function
Diffstat (limited to 'Include/moduleobject.h')
-rw-r--r-- | Include/moduleobject.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/moduleobject.h b/Include/moduleobject.h index 79ca7ec74a..8013dd9b48 100644 --- a/Include/moduleobject.h +++ b/Include/moduleobject.h @@ -12,6 +12,9 @@ PyAPI_DATA(PyTypeObject) PyModule_Type; #define PyModule_Check(op) PyObject_TypeCheck(op, &PyModule_Type) #define PyModule_CheckExact(op) (Py_TYPE(op) == &PyModule_Type) +PyAPI_FUNC(PyObject *) PyModule_NewObject( + PyObject *name + ); PyAPI_FUNC(PyObject *) PyModule_New( const char *name /* UTF-8 encoded string */ ); |