summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2012-08-15 11:51:08 (GMT)
committerEli Bendersky <eliben@gmail.com>2012-08-15 11:51:08 (GMT)
commitbdbc0b08d07c73133ac46dc8e51057459c11d97f (patch)
tree88dc2d6cf6f0805b2b4adce2968115390785262a /Doc
parentaae61b8cd02479180d326889c717daa413029b4d (diff)
parentf748a3773fd40dd91195fc2fef2cac2f973baaf8 (diff)
downloadcpython-bdbc0b08d07c73133ac46dc8e51057459c11d97f.zip
cpython-bdbc0b08d07c73133ac46dc8e51057459c11d97f.tar.gz
cpython-bdbc0b08d07c73133ac46dc8e51057459c11d97f.tar.bz2
merge 3.2
Diffstat (limited to 'Doc')
-rw-r--r--Doc/extending/extending.rst15
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);
}