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

Method append

crates/vm/src/builtins/bytearray.rs:596–600  ·  view source on GitHub ↗
(&self, object: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

594
595 #[pymethod]
596 fn append(&self, object: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
597 let value = value_from_object(vm, &object)?;
598 self.try_resizable(vm)?.elements.push(value);
599 Ok(())
600 }
601
602 #[pymethod]
603 fn remove(&self, object: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {

Callers

nothing calls this directly

Calls 3

value_from_objectFunction · 0.85
try_resizableMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected