From 3e429dcc242e48fa4cbb1a91cf7c416c37b97b4e Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 30 Oct 2018 13:19:51 +0200 Subject: bpo-33237: Improve AttributeError message for partially initialized module. (GH-6398) --- Include/moduleobject.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Include') diff --git a/Include/moduleobject.h b/Include/moduleobject.h index 1d8fe46dea..4d17380873 100644 --- a/Include/moduleobject.h +++ b/Include/moduleobject.h @@ -30,6 +30,7 @@ PyAPI_FUNC(PyObject *) PyModule_GetFilenameObject(PyObject *); #ifndef Py_LIMITED_API PyAPI_FUNC(void) _PyModule_Clear(PyObject *); PyAPI_FUNC(void) _PyModule_ClearDict(PyObject *); +PyAPI_FUNC(int) _PyModuleSpec_IsInitializing(PyObject *); #endif PyAPI_FUNC(struct PyModuleDef*) PyModule_GetDef(PyObject*); PyAPI_FUNC(void*) PyModule_GetState(PyObject*); -- cgit v1.2.1