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

Function setattr

include/pybind11/pytypes.h:938–942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936}
937
938inline void setattr(handle obj, handle name, handle value) {
939 if (PyObject_SetAttr(obj.ptr(), name.ptr(), value.ptr()) != 0) {
940 throw error_already_set();
941 }
942}
943
944inline void setattr(handle obj, const char *name, handle value) {
945 if (PyObject_SetAttrString(obj.ptr(), name, value.ptr()) != 0) {

Callers 15

test_shpFunction · 0.85
test_ptrFunction · 0.85
test_uqpFunction · 0.85
_proxy_dereferenceFunction · 0.85
TEST_SUBMODULEFunction · 0.85
TEST_SUBMODULEFunction · 0.85
initializeMethod · 0.85
setMethod · 0.85
setMethod · 0.85
annotationsMethod · 0.85

Calls 1

ptrMethod · 0.80

Tested by 8

test_shpFunction · 0.68
test_ptrFunction · 0.68
test_uqpFunction · 0.68
_proxy_dereferenceFunction · 0.68
TEST_SUBMODULEFunction · 0.68
TEST_SUBMODULEFunction · 0.68