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

Method pop

crates/vm/src/stdlib/_collections.rs:217–222  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

215
216 #[pymethod]
217 fn pop(&self, vm: &VirtualMachine) -> PyResult {
218 self.state.fetch_add(1);
219 self.borrow_deque_mut()
220 .pop_back()
221 .ok_or_else(|| vm.new_index_error("pop from an empty deque"))
222 }
223
224 #[pymethod]
225 fn popleft(&self, vm: &VirtualMachine) -> PyResult {

Callers 2

write_object_depthFunction · 0.45
readMethod · 0.45

Calls 3

ok_or_elseMethod · 0.80
pop_backMethod · 0.80
borrow_deque_mutMethod · 0.80

Tested by

no test coverage detected