[Boost-bugs] [Boost C++ Libraries] #3310: Why hasn't Ticket #1890 (1.35) been dealt with? It is still current: RE: boost::python embedding tutorial.

Subject: [Boost-bugs] [Boost C++ Libraries] #3310: Why hasn't Ticket #1890 (1.35) been dealt with? It is still current: RE: boost::python embedding tutorial.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-08-02 07:31:15


#3310: Why hasn't Ticket #1890 (1.35) been dealt with? It is still current: RE:
boost::python embedding tutorial.
------------------------------------+---------------------------------------
 Reporter: kat@… | Owner: dave
     Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: Python
  Version: Boost 1.39.0 | Severity: Problem
 Keywords: embedding tutorial |
------------------------------------+---------------------------------------
 Ticket #1890 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:
 http://www.boost.org/doc/libs/1_39_0/libs/python/doc/tutorial/doc/html/python/embedding.html

 object ignored = exec("hello = file('hello.txt', 'w')\n"

     "hello.write('Hello world!')\n" "hello.close()", main_namespace);

 should be:

 object ignored = exec("hello = file('hello.txt', 'w')\n"

     "hello.write('Hello world!')\n" "hello.close()", main_namespace,
 main_namespace);

 As described in ticket #1890.

 This cost me > 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! --

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3310>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC