Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c068b53

Browse files
authored
bpo-38787: Update structures.rst docs (PEP 573) (GH-19980)
1 parent a1d9e0a commit c068b53

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

Doc/c-api/structures.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Implementing functions and methods
150150
The function signature is::
151151
152152
PyObject *PyCFunction(PyObject *self,
153-
PyObject *const *args);
153+
PyObject *args);
154154
155155
.. c:type:: PyCFunctionWithKeywords
156156
@@ -159,7 +159,7 @@ Implementing functions and methods
159159
The function signature is::
160160
161161
PyObject *PyCFunctionWithKeywords(PyObject *self,
162-
PyObject *const *args,
162+
PyObject *args,
163163
PyObject *kwargs);
164164
165165

Modules/_testmultiphase.c

+6-10
Original file line numberDiff line numberDiff line change
@@ -820,16 +820,12 @@ static PyModuleDef_Slot meth_state_access_slots[] = {
820820
};
821821

822822
static PyModuleDef def_meth_state_access = {
823-
PyModuleDef_HEAD_INIT, /* m_base */
824-
"_testmultiphase_meth_state_access", /* m_name */
825-
PyDoc_STR("Module testing access"
826-
" to state from methods."),
827-
sizeof(meth_state), /* m_size */
828-
NULL, /* m_methods */
829-
meth_state_access_slots, /* m_slots */
830-
0, /* m_traverse */
831-
0, /* m_clear */
832-
0, /* m_free */
823+
PyModuleDef_HEAD_INIT,
824+
.m_name = "_testmultiphase_meth_state_access",
825+
.m_doc = PyDoc_STR("Module testing access"
826+
" to state from methods."),
827+
.m_size = sizeof(meth_state),
828+
.m_slots = meth_state_access_slots,
833829
};
834830

835831
PyMODINIT_FUNC

0 commit comments

Comments
 (0)