0
0
mirror of https://github.com/python/cpython.git synced 2024-11-24 00:38:00 +01:00

bpo-38787: Update structures.rst docs (PEP 573) (GH-19980)

This commit is contained in:
Hai Shi 2020-05-08 01:16:01 +08:00 committed by GitHub
parent a1d9e0accd
commit c068b53a0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 12 deletions

View File

@ -150,7 +150,7 @@ Implementing functions and methods
The function signature is::
PyObject *PyCFunction(PyObject *self,
PyObject *const *args);
PyObject *args);
.. c:type:: PyCFunctionWithKeywords
@ -159,7 +159,7 @@ Implementing functions and methods
The function signature is::
PyObject *PyCFunctionWithKeywords(PyObject *self,
PyObject *const *args,
PyObject *args,
PyObject *kwargs);

View File

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