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

Class function

include/pybind11/pytypes.h:2357–2368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2355};
2356
2357class function : public object {
2358public:
2359 PYBIND11_OBJECT_DEFAULT(function, object, PyCallable_Check)
2360 handle cpp_function() const {
2361 handle fun = detail::get_function(m_ptr);
2362 if (fun && PyCFunction_Check(fun.ptr())) {
2363 return fun;
2364 }
2365 return handle();
2366 }
2367 bool is_cpp_function() const { return (bool) cpp_function(); }
2368};
2369
2370class staticmethod : public object {
2371public:

Callers 3

get_type_overrideFunction · 0.85
get_overrideFunction · 0.85

Calls

no outgoing calls

Tested by 1