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

Stefan Seefeld seefeld at sympatico.ca
Wed May 2 14:33:21 CEST 2007


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 ?

Thanks,
		Stefan

-- 

      ...ich hab' noch einen Koffer in Berlin...
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20070502/c7432cb2/attachment.txt>


More information about the Cplusplus-sig mailing list