Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ advance
Method
advance
include/pybind11/pytypes.h:1596–1601 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1594
}
1595
1596
void advance() {
1597
value = reinterpret_steal<object>(PyIter_Next(m_ptr));
1598
if (value.ptr() == nullptr && PyErr_Occurred()) {
1599
throw error_already_set();
1600
}
1601
}
1602
1603
private:
1604
object value;
Callers
1
init
Method · 0.95
Calls
1
ptr
Method · 0.80
Tested by
no test coverage detected