Boost C++ Libraries: Ticket #3310: Why hasn't Ticket #1890 (1.35) been dealt with? It is still current: RE: boost::python embedding tutorial. https://svn.boost.org/trac10/ticket/3310 <p> Ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1890" title="#1890: Bugs: Missing parameters in example code (closed: invalid)">#1890</a> is 15 months old. The "python embedding tutorial" is still screwed up ("1890" was at version 1.35). There are a host of blog entries on the web about this problem (and essentially no fixes, and few new boost-users would understand enough to get through this problem): basically on the webpage: <a href="http://www.boost.org/doc/libs/1_39_0/libs/python/doc/tutorial/doc/html/python/embedding.html">http://www.boost.org/doc/libs/1_39_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> <p> As described in ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1890" title="#1890: Bugs: Missing parameters in example code (closed: invalid)">#1890</a>. </p> <p> This cost me &gt; 2 hours, and I could have written my python interface from C++ using calls to "extern C" python API in significantly less time than that (and I haven't even seen the API before). Clearly a better default parameter setting for exec's parameter "local" would be the incoming value of "global"? -- Thanks! -- </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3310 Trac 1.4.3 Daniel James Wed, 05 Aug 2009 18:51:41 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3310#comment:1 https://svn.boost.org/trac10/ticket/3310#comment:1 <ul> <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">duplicate</span> </li> </ul> <p> If the old ticket was ignored for 15 months, opening a new one isn't likely to do much better. Please don't create duplicate tickets. Anyway, I've posted to C++ sig about this issue, so hopefully it should get fixed soon. </p> Ticket