mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #3080: Add PyModule_NewObject() function
This commit is contained in:
parent
3a9559b844
commit
0639b56672
3 changed files with 28 additions and 8 deletions
|
@ -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 */
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue