PEP 7: Mention PyAPI_DATA() macro (#2184)
This commit is contained in:
parent
4f9188c572
commit
9dade42dbe
|
@ -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
|
||||
==================
|
||||
|
|
Loading…
Reference in New Issue