MCPcopy Create free account
hub / github.com/pybind/pybind11 / exec

Function exec

include/pybind11/eval.h:88–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88inline void exec(const str &expr, object global = globals(), object local = object()) {
89 eval<eval_statements>(expr, std::move(global), std::move(local));
90}
91
92template <size_t N>
93void exec(const char (&s)[N], object global = globals(), object local = object()) {

Callers 5

TEST_SUBMODULEFunction · 0.85
conf.pyFile · 0.85

Calls 3

globalsFunction · 0.85
moveFunction · 0.85
objectFunction · 0.70

Tested by 2

TEST_SUBMODULEFunction · 0.68