cpython: 599376deeeac (original) (raw)
Mercurial > cpython
changeset 78587:599376deeeac 3.2
Issue #15656: fixing code sample in extending doc [#15656]
Eli Bendersky eliben@gmail.com | |
---|---|
date | Wed, 15 Aug 2012 14:49:49 +0300 |
parents | 7590dec388a7 |
children | a4ad88218dca |
files | Doc/extending/extending.rst |
diffstat | 1 files changed, 10 insertions(+), 5 deletions(-)[+] [-] Doc/extending/extending.rst 15 |
line wrap: on
line diff
--- a/Doc/extending/extending.rst +++ b/Doc/extending/extending.rst @@ -735,13 +735,18 @@ Philbrick (philbrick@hks.com):: {NULL, NULL, 0, NULL} /* sentinel */ }; -::
- static struct PyModuleDef keywdargmodule = {
PyModuleDef_HEAD_INIT,[](#l1.9)
"keywdarg",[](#l1.10)
NULL,[](#l1.11)
-1,[](#l1.12)
keywdarg_methods[](#l1.13)
- };
/* Create the module and add the functions */[](#l1.21)
Py_InitModule("keywdarg", keywdarg_methods);[](#l1.22)