Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ init
Method
init
include/pybind11/pytypes.h:1589–1594 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1587
1588
private:
1589
void init() const {
1590
if (m_ptr && !value.ptr()) {
1591
auto &self = const_cast<iterator &>(*this);
1592
self.advance();
1593
}
1594
}
1595
1596
void advance() {
1597
value = reinterpret_steal<object>(PyIter_Next(m_ptr));
Callers
1
enum_
Method · 0.45
Calls
2
advance
Method · 0.95
ptr
Method · 0.80
Tested by
no test coverage detected