Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Doc/c-api/structures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ There are a large number of structures which are used in the definition of
object types for Python. This section describes these structures and how they
are used.


Base object types and macros
----------------------------

All Python objects ultimately share a small number of fields at the beginning
of the object's representation in memory. These are represented by the
:c:type:`PyObject` and :c:type:`PyVarObject` types, which are defined, in turn,
Expand Down Expand Up @@ -102,6 +106,9 @@ the definition of all other Python objects.
1, type, size,


Implementing functions and methods
----------------------------------

.. c:type:: PyCFunction

Type of the functions used to implement most Python callables in C.
Expand Down Expand Up @@ -231,6 +238,9 @@ definition with the same method name.
than wrapper object calls.


Accessing attributes of extension types
---------------------------------------

.. c:type:: PyMemberDef

Structure which describes an attribute of a type which corresponds to a C
Expand Down