[docs] Typo in http://docs.python.org/2/extending/extending.htm

Michael Karpeles michael.karpeles at gmail.com
Tue May 14 10:48:01 CEST 2013


Howdy friends,

In document http://docs.python.org/2/extending/extending.html, the last
code snippet at the bottom of section The Module's Method Table and
Initialization Function:

intmain(int argc, char *argv[]){
    /* Pass argv[0] to the Python interpreter */
    Py_SetProgramName(argv[0]);

    /* Initialize the Python interpreter.  Required. */
    Py_Initialize();

    /* Add a static module */
    initspam();

The function is missing a terminating }

best wishes + happy hacking,

- mek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20130514/c2ccdd5a/attachment-0001.html>


More information about the docs mailing list