changeset: 78589:f46b4b7b817c parent: 78586:7c8c6b905a18 parent: 78588:a4ad88218dca user: Eli Bendersky date: Wed Aug 15 14:51:08 2012 +0300 files: Doc/extending/extending.rst description: merge 3.2 diff -r 7c8c6b905a18 -r f46b4b7b817c Doc/extending/extending.rst --- a/Doc/extending/extending.rst Wed Aug 15 14:36:14 2012 +0300 +++ b/Doc/extending/extending.rst Wed Aug 15 14:51:08 2012 +0300 @@ -732,13 +732,18 @@ {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); }

AltStyle によって変換されたページ (->オリジナル) /