• Home
  • Raw
  • Download

Lines Matching refs:python

12 namespace python = boost::python;
31 struct BaseWrap : Base, python::wrapper<Base>
38 return python::call<std::string>(this->get_override("hello").ptr()); in hello()
48 python::class_<BaseWrap, boost::noncopyable> base("Base"); in BOOST_PYTHON_MODULE()
54 python::object result = python::eval("'abcdefg'.upper()"); in eval_test()
55 std::string value = python::extract<std::string>(result) BOOST_EXTRACT_WORKAROUND; in eval_test()
62 python::object main = python::import("__main__"); in exec_test()
65 python::object global(main.attr("__dict__")); in exec_test()
68 python::object result = python::exec( in exec_test()
75 python::object PythonDerived = global["PythonDerived"]; in exec_test()
83 python::object py_base = PythonDerived(); in exec_test()
84 Base& py = python::extract<Base&>(py_base) BOOST_EXTRACT_WORKAROUND; in exec_test()
93 python::dict global; in exec_file_test()
94 python::object result = python::exec_file(script.c_str(), global, global); in exec_file_test()
97 BOOST_TEST(python::extract<int>(global["number"]) == 42); in exec_file_test()
103 python::dict global; in exec_test_error()
104 python::object result = python::exec("print(unknown) \n", global, global); in exec_test_error()
109 using namespace boost::python; in exercise_embedding_html()
162 if (python::handle_exception(eval_test)) { in main()
165 else if(python::handle_exception(exec_test)) { in main()
168 else if (python::handle_exception(boost::bind(exec_file_test, script))) { in main()
172 if (python::handle_exception(exec_test_error)) in main()