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

Function iter

include/pybind11/pytypes.h:2580–2586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2578}
2579
2580inline iterator iter(handle obj) {
2581 PyObject *result = PyObject_GetIter(obj.ptr());
2582 if (!result) {
2583 throw error_already_set();
2584 }
2585 return reinterpret_steal<iterator>(result);
2586}
2587/// @} python_builtins
2588
2589PYBIND11_NAMESPACE_BEGIN(detail)

Callers 8

test_sequenceFunction · 0.85
test_map_iteratorFunction · 0.85
test_from_iterableFunction · 0.85
test_cpp_iteratorsFunction · 0.85
beginMethod · 0.85

Calls 1

ptrMethod · 0.80

Tested by 7

test_sequenceFunction · 0.68
test_map_iteratorFunction · 0.68
test_from_iterableFunction · 0.68
test_cpp_iteratorsFunction · 0.68