Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ set
Method
set
include/pybind11/pytypes.h:1142–1142 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1140
using key_type = object;
1141
static object get(handle obj, handle key) { return getattr(obj, key); }
1142
static void set(handle obj, handle key, handle val) { setattr(obj, key, val); }
1143
};
1144
1145
struct str_attr {
Callers
nothing calls this directly
Calls
1
setattr
Function · 0.85
Tested by
no test coverage detected