diff options
author | Eli Bendersky <eliben@gmail.com> | 2012-08-15 11:51:08 (GMT) |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2012-08-15 11:51:08 (GMT) |
commit | bdbc0b08d07c73133ac46dc8e51057459c11d97f (patch) | |
tree | 88dc2d6cf6f0805b2b4adce2968115390785262a /Doc/extending | |
parent | aae61b8cd02479180d326889c717daa413029b4d (diff) | |
parent | f748a3773fd40dd91195fc2fef2cac2f973baaf8 (diff) | |
download | cpython-bdbc0b08d07c73133ac46dc8e51057459c11d97f.zip cpython-bdbc0b08d07c73133ac46dc8e51057459c11d97f.tar.gz cpython-bdbc0b08d07c73133ac46dc8e51057459c11d97f.tar.bz2 |
merge 3.2
Diffstat (limited to 'Doc/extending')
-rw-r--r-- | Doc/extending/extending.rst | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst index 3261580..ef95ac9 100644 --- a/Doc/extending/extending.rst +++ b/Doc/extending/extending.rst @@ -732,13 +732,18 @@ Philbrick (philbrick@hks.com):: {NULL, NULL, 0, NULL} /* sentinel */ }; -:: + static struct PyModuleDef keywdargmodule = { + PyModuleDef_HEAD_INIT, + "keywdarg", + NULL, + -1, + keywdarg_methods + }; - void - initkeywdarg(void) + PyMODINIT_FUNC + PyInit_keywdarg(void) { - /* Create the module and add the functions */ - Py_InitModule("keywdarg", keywdarg_methods); + return PyModule_Create(&keywdargmodule); } |