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

Function has_state_dict_internals_obj

tests/test_with_catch/test_interpreter.cpp:25–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25bool has_state_dict_internals_obj() {
26 py::dict state = py::detail::get_python_state_dict();
27 return state.contains(PYBIND11_INTERNALS_ID);
28}
29
30uintptr_t get_details_as_uintptr() {
31 return reinterpret_cast<uintptr_t>(py::detail::get_internals_pp_manager().get_pp()->get());

Callers 2

Calls 2

get_python_state_dictFunction · 0.85
containsMethod · 0.45

Tested by

no test coverage detected