Skip to content

Commit

Permalink
bpo-38787: Update structures.rst docs (PEP 573) (GH-19980)
Browse files Browse the repository at this point in the history
  • Loading branch information
shihai1991 authored May 7, 2020
1 parent a1d9e0a commit c068b53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Doc/c-api/structures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Implementing functions and methods
The function signature is::
PyObject *PyCFunction(PyObject *self,
PyObject *const *args);
PyObject *args);
.. c:type:: PyCFunctionWithKeywords
Expand All @@ -159,7 +159,7 @@ Implementing functions and methods
The function signature is::
PyObject *PyCFunctionWithKeywords(PyObject *self,
PyObject *const *args,
PyObject *args,
PyObject *kwargs);
Expand Down
16 changes: 6 additions & 10 deletions Modules/_testmultiphase.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,16 +820,12 @@ static PyModuleDef_Slot meth_state_access_slots[] = {
};

static PyModuleDef def_meth_state_access = {
PyModuleDef_HEAD_INIT, /* m_base */
"_testmultiphase_meth_state_access", /* m_name */
PyDoc_STR("Module testing access"
" to state from methods."),
sizeof(meth_state), /* m_size */
NULL, /* m_methods */
meth_state_access_slots, /* m_slots */
0, /* m_traverse */
0, /* m_clear */
0, /* m_free */
PyModuleDef_HEAD_INIT,
.m_name = "_testmultiphase_meth_state_access",
.m_doc = PyDoc_STR("Module testing access"
" to state from methods."),
.m_size = sizeof(meth_state),
.m_slots = meth_state_access_slots,
};

PyMODINIT_FUNC
Expand Down

0 comments on commit c068b53

Please sign in to comment.