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

Function delattr

include/pybind11/pytypes.h:894–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

892}
893
894inline void delattr(handle obj, handle name) {
895 if (PyObject_DelAttr(obj.ptr(), name.ptr()) != 0) {
896 throw error_already_set();
897 }
898}
899
900inline void delattr(handle obj, const char *name) {
901 if (PyObject_DelAttrString(obj.ptr(), name) != 0) {

Callers 2

TEST_SUBMODULEFunction · 0.85

Calls 1

ptrMethod · 0.80

Tested by 2

TEST_SUBMODULEFunction · 0.68