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

Method stack_extend

crates/vm/src/frame.rs:423–427  ·  view source on GitHub ↗

Extend the stack with values from an iterator.

(&mut self, iter: impl Iterator<Item = Option<PyStackRef>>)

Source from the content-addressed store, hash-verified

421
422 /// Extend the stack with values from an iterator.
423 fn stack_extend(&mut self, iter: impl Iterator<Item = Option<PyStackRef>>) {
424 for val in iter {
425 self.stack_push(val);
426 }
427 }
428}
429
430/// Iterator for draining stack elements in forward order.

Callers 2

execute_unpack_exMethod · 0.80
unpack_sequenceMethod · 0.80

Calls 1

stack_pushMethod · 0.80

Tested by

no test coverage detected