summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-03-04 12:57:07 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-03-04 12:57:07 (GMT)
commit0639b56672112e69a1d55c0105dae9198f757ec2 (patch)
treee98517568ca1ddb7932018f6f0c88a732ff1d2a7 /Include
parent3a9559b844153c4fe8584d129d88fa8f0a396944 (diff)
downloadcpython-0639b56672112e69a1d55c0105dae9198f757ec2.zip
cpython-0639b56672112e69a1d55c0105dae9198f757ec2.tar.gz
cpython-0639b56672112e69a1d55c0105dae9198f757ec2.tar.bz2
Issue #3080: Add PyModule_NewObject() function
Diffstat (limited to 'Include')
-rw-r--r--Include/moduleobject.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/moduleobject.h b/Include/moduleobject.h
index 79ca7ec..8013dd9 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 */
);