Update of /cvsroot/boost/boost/boost/python
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2983/boost/python
Modified Files:
Tag: RC_1_34_0
exec.hpp
Log Message:
Backport new eval() function from HEAD.
Index: exec.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/python/exec.hpp,v
retrieving revision 1.1.6.1
retrieving revision 1.1.6.2
diff -u -d -r1.1.6.1 -r1.1.6.2
--- exec.hpp 27 Oct 2006 21:19:46 -0000 1.1.6.1
+++ exec.hpp 15 May 2007 13:43:52 -0000 1.1.6.2
@@ -13,18 +13,25 @@
namespace python
{
+// Evaluate python expression from str.
+// global and local are the global and local scopes respectively,
+// used during evaluation.
+object
+BOOST_PYTHON_DECL
+eval(str string, object global = object(), object local = object());
+
// Execute python source code from str.
// global and local are the global and local scopes respectively,
// used during execution.
object
-BOOST_PYTHON_DECL
+BOOST_PYTHON_DECL
exec(str string, object global = object(), object local = object());
// Execute python source code from file filename.
// global and local are the global and local scopes respectively,
// used during execution.
object
-BOOST_PYTHON_DECL
+BOOST_PYTHON_DECL
exec_file(str filename, object global = object(), object local = object());
}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs