Lines Matching refs:python
11 namespace python = boost::python;
30 struct BaseWrap : Base, python::wrapper<Base>
37 return python::call<std::string>(this->get_override("hello").ptr()); in hello()
47 python::class_<BaseWrap, boost::noncopyable> base("Base"); in BOOST_PYTHON_MODULE()
63 python::object main = python::import("__main__"); in exec_test()
66 python::object global(main.attr("__dict__")); in exec_test()
69 python::object result = python::exec( in exec_test()
76 python::object PythonDerived = global["PythonDerived"]; in exec_test()
86 python::object py_base = PythonDerived(); in exec_test()
87 Base& py = python::extract<Base&>(py_base) BOOST_EXTRACT_WORKAROUND; in exec_test()
100 python::dict global; in exec_file_test()
101 python::object result = python::exec_file(script.c_str(), global, global); in exec_file_test()
104 BOOST_TEST(python::extract<int>(global["number"]) == 42); in exec_file_test()
114 python::dict global; in exec_test_error()
115 python::object result = python::exec("print unknown \n", global, global); in exec_test_error()
130 python::handle_exception(exec_test) in main()
131 || python::handle_exception(boost::bind(exec_file_test, script)) in main()
134 && python::handle_exception(exec_test_error) in main()