MCPcopy Create free account
hub / github.com/pybind/pybind11 / ~PyPrintDestructor

Method ~PyPrintDestructor

tests/test_class.cpp:538–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536 PyPrintDestructor() = default;
537 PyPrintDestructor(const PyPrintDestructor &) = default;
538 ~PyPrintDestructor() { py::print("Print from destructor"); }
539 void throw_something() { throw std::runtime_error("error"); }
540 };
541 py::class_<PyPrintDestructor>(m, "PyPrintDestructor")

Callers

nothing calls this directly

Calls 1

printFunction · 0.85

Tested by

no test coverage detected