Boost C++ Libraries: Ticket #1890: Missing parameters in example code https://svn.boost.org/trac10/ticket/1890 <p> On the page: </p> <p> <a href="http://www.boost.org/doc/libs/1_35_0/libs/python/doc/tutorial/doc/html/python/embedding.html">http://www.boost.org/doc/libs/1_35_0/libs/python/doc/tutorial/doc/html/python/embedding.html</a> </p> <p> object ignored = exec("hello = file('hello.txt', 'w')\n" </p> <blockquote> <p> "hello.write('Hello world!')\n" "hello.close()", main_namespace); </p> </blockquote> <p> should be: </p> <p> object ignored = exec("hello = file('hello.txt', 'w')\n" </p> <blockquote> <p> "hello.write('Hello world!')\n" "hello.close()", main_namespace, main_namespace); </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1890 Trac 1.4.3 Daniel James Sat, 03 May 2008 10:44:41 GMT owner, component changed https://svn.boost.org/trac10/ticket/1890#comment:1 https://svn.boost.org/trac10/ticket/1890#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Matias Capeletto</span> to <span class="trac-author">Dave Abrahams</span> </li> <li><strong>component</strong> <span class="trac-field-old">Documentation</span> → <span class="trac-field-new">Python</span> </li> </ul> Ticket Ralf W. Grosse-Kunstleve Tue, 18 Aug 2009 00:55:15 GMT status changed; cc, resolution set https://svn.boost.org/trac10/ticket/1890#comment:2 https://svn.boost.org/trac10/ticket/1890#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">rwgk@…</span> added </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> svn trunk rev. 55640 verifies that the code as shown under embedding.html compiles and runs as intended. The third argument is optional and defaults to None, which is just fine in this case. I suggest leaving the example as is. Ralf </p> Ticket