Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ gen_f
Function
gen_f
tests/test_callbacks.py:175–177 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
173
174
# generate stateful lambda that will store result in `res`
175
def
gen_f():
176
s = Item(3)
177
return
lambda
j: res.append(s.value + j)
178
179
# do some work async
180
work = [1, 2, 3, 4]
Callers
1
test_async_callbacks
Function · 0.85
Calls
2
Item
Class · 0.85
append
Method · 0.45
Tested by
no test coverage detected