<div dir="ltr"><div style>Howdy friends,</div><div><br></div>In document <a href="http://docs.python.org/2/extending/extending.html">http://docs.python.org/2/extending/extending.html</a>, the last code snippet at the bottom of section <a href="http://The Module's Method Table and Initialization Function">The Module's Method Table and Initialization Function</a>: <div style>

<pre style="padding:5px;background-color:rgb(238,255,204);color:rgb(51,51,51);line-height:15px;border-top-width:1px;border-bottom-width:1px;border-style:solid none;border-top-color:rgb(170,204,153);border-bottom-color:rgb(170,204,153)">

<span class="" style="color:rgb(144,32,0)">int</span>
<span class="" style="color:rgb(6,40,126)">main</span><span class="">(</span><span class="" style="color:rgb(144,32,0)">int</span> <span class="">argc</span><span class="">,</span> <span class="" style="color:rgb(144,32,0)">char</span> <span class="" style="color:rgb(102,102,102)">*</span><span class="">argv</span><span class="">[])</span>
<span class="">{</span>
    <span class="" style="color:rgb(64,128,144);font-style:italic">/* Pass argv[0] to the Python interpreter */</span>
    <span class="">Py_SetProgramName</span><span class="">(</span><span class="">argv</span><span class="">[</span><span class="" style="color:rgb(32,128,80)">0</span><span class="">]);</span>

    <span class="" style="color:rgb(64,128,144);font-style:italic">/* Initialize the Python interpreter.  Required. */</span>
    <span class="">Py_Initialize</span><span class="">();</span>

    <span class="" style="color:rgb(64,128,144);font-style:italic">/* Add a static module */</span>
    <span class="">initspam</span><span class="">();</span></pre></div><div style>The function is missing a terminating }</div><div style><br></div><div style>best wishes + happy hacking,</div><div style><br></div><div style>

- mek</div></div>