summaryrefslogtreecommitdiff
path: root/Include/import.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-05-22 20:59:42 +0300
committerGitHub <noreply@github.com>2018-05-22 20:59:42 +0300
commit4e29f566e8821c09d8274eadcdd355e8b1284b8b (patch)
treebb5d17d6b0bce38c722017a42ff1a18afcce53f7 /Include/import.h
parentb2f5f59ae15564b991f3ca4850e6ad28d9faacbc (diff)
downloadcpython-git-4e29f566e8821c09d8274eadcdd355e8b1284b8b.tar.gz
Add missed details of the C API introduced in 3.7. (GH-7047)
* Set the limited API version for PyImport_GetModule and PyOS_*Fork functions. * Add PyImport_GetModule and Py_UTF8Mode in PC/python3.def. * Add several functions in Doc/data/refcounts.dat.
Diffstat (limited to 'Include/import.h')
-rw-r--r--Include/import.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/import.h b/Include/import.h
index ac3fc3bd28..13f32a1004 100644
--- a/Include/import.h
+++ b/Include/import.h
@@ -38,7 +38,9 @@ PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleObject(
);
#endif
PyAPI_FUNC(PyObject *) PyImport_GetModuleDict(void);
+#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000
PyAPI_FUNC(PyObject *) PyImport_GetModule(PyObject *name);
+#endif
#ifndef Py_LIMITED_API
PyAPI_FUNC(int) _PyImport_IsInitialized(PyInterpreterState *);
PyAPI_FUNC(PyObject *) _PyImport_GetModuleId(struct _Py_Identifier *name);