PEP 7: Mention PyAPI_DATA() macro (#2184)

This commit is contained in:
bobozi-cmd 2021-12-09 08:41:17 +08:00 committed by GitHub
parent 4f9188c572
commit 9dade42dbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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
==================