• Home
  • Raw
  • Download

Lines Matching refs:global

17 object BOOST_PYTHON_DECL eval(str string, object global, object local)  in eval()  argument
19 return eval(python::extract<char const *>(string), global, local); in eval()
22 object BOOST_PYTHON_DECL eval(char const *string, object global, object local) in eval() argument
25 if (global.is_none()) in eval()
28 global = object(detail::borrowed_reference(g)); in eval()
30 global = dict(); in eval()
32 if (local.is_none()) local = global; in eval()
35 PyObject* result = PyRun_String(s, Py_eval_input, global.ptr(), local.ptr()); in eval()
40 object BOOST_PYTHON_DECL exec(str string, object global, object local) in exec() argument
42 return exec(python::extract<char const *>(string), global, local); in exec()
45 object BOOST_PYTHON_DECL exec(char const *string, object global, object local) in exec() argument
48 if (global.is_none()) in exec()
51 global = object(detail::borrowed_reference(g)); in exec()
53 global = dict(); in exec()
55 if (local.is_none()) local = global; in exec()
58 PyObject* result = PyRun_String(s, Py_file_input, global.ptr(), local.ptr()); in exec()
63 object BOOST_PYTHON_DECL exec_statement(str string, object global, object local) in exec_statement() argument
65 return exec_statement(python::extract<char const *>(string), global, local); in exec_statement()
68 object BOOST_PYTHON_DECL exec_statement(char const *string, object global, object local) in exec_statement() argument
71 if (global.is_none()) in exec_statement()
74 global = object(detail::borrowed_reference(g)); in exec_statement()
76 global = dict(); in exec_statement()
78 if (local.is_none()) local = global; in exec_statement()
81 PyObject* result = PyRun_String(s, Py_single_input, global.ptr(), local.ptr()); in exec_statement()
89 object BOOST_PYTHON_DECL exec_file(str filename, object global, object local) in exec_file() argument
91 return exec_file(python::extract<char const *>(filename), global, local); in exec_file()
94 object BOOST_PYTHON_DECL exec_file(char const *filename, object global, object local) in exec_file() argument
97 if (global.is_none()) in exec_file()
100 global = object(detail::borrowed_reference(g)); in exec_file()
102 global = dict(); in exec_file()
104 if (local.is_none()) local = global; in exec_file()
123 global.ptr(), local.ptr()); in exec_file()