From 8ef6dc184bdf9d5bc72df4ea07ef0d42ea681799 Mon Sep 17 00:00:00 2001 From: zwb <1210611257@qq.com> Date: Tue, 7 Dec 2021 14:01:15 +0800 Subject: [PATCH] PEP7: add PyAPI_DATA() macro --- pep-0007.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pep-0007.txt b/pep-0007.txt index 4278e4c12bf..85290746198 100644 --- a/pep-0007.txt +++ b/pep-0007.txt @@ -144,10 +144,12 @@ Code lay-out * For external functions and variables, we always have a declaration in an appropriate header file in the "Include" directory, which uses - the ``PyAPI_FUNC()`` macro, like this:: + the ``PyAPI_FUNC()`` macro and ``PyAPI_DATA()`` macro, like this:: PyAPI_FUNC(PyObject *) PyObject_Repr(PyObject *); + PyAPI_DATA(PyTypeObject) PySuper_Type; + Naming conventions ==================