[C++-sig] boost::python::eval

David Abrahams dave at boost-consulting.com
Wed May 2 15:02:48 CEST 2007


on Wed May 02 2007, Stefan Seefeld <seefeld-AT-sympatico.ca> wrote:

> David,
>
> when looking at the Embedding Python tutorial, I realized that the
> functionality provided by exec() and exec_file() isn't quite complete,
> with respect to the C API's offering: Py_eval_input isn't covered.
>
> The attached patch attempts to fix that, i.e. a new eval() function
> is defined that returns the result of the evaluated expression passed
> as argument.
>
> I'd like to check this into HEAD, as well as the 1_34 branch, as soon
> as the release is out (assuming that this is indeed to become the new
> trunk), so it can make it into 1.35.
>
> OK ?

Sure.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Don't Miss BoostCon 2007! ==> http://www.boostcon.com



More information about the Cplusplus-sig mailing list