MCPcopy Index your code
hub / github.com/RustPython/RustPython / iter

Method iter

crates/vm/src/builtins/list.rs:561–566  ·  view source on GitHub ↗
(zelf: PyRef<Self>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

559
560impl Iterable for PyList {
561 fn iter(zelf: PyRef<Self>, vm: &VirtualMachine) -> PyResult {
562 Ok(PyListIterator {
563 internal: PyMutex::new(PositionIterInternal::new(zelf, 0)),
564 }
565 .into_pyobject(vm))
566 }
567}
568
569impl Comparable for PyList {

Callers 4

concatMethod · 0.45
extract_clonedFunction · 0.45
cmpMethod · 0.45
do_sortFunction · 0.45

Calls 2

newFunction · 0.85
into_pyobjectMethod · 0.45

Tested by

no test coverage detected