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

Method append

crates/vm/src/builtins/list.rs:183–185  ·  view source on GitHub ↗
(&self, x: PyObjectRef)

Source from the content-addressed store, hash-verified

181impl PyList {
182 #[pymethod]
183 pub(crate) fn append(&self, x: PyObjectRef) {
184 self.borrow_vec_mut().push(x);
185 }
186
187 #[pymethod]
188 pub(crate) fn extend(&self, x: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {

Callers 15

thenMethod · 0.45
parse_requirementFunction · 0.45
get_versionsFunction · 0.45
to_asciiFunction · 0.45
format_bytesMethod · 0.45
find_doc_entriesFunction · 0.45
cformat_bytesFunction · 0.45
imulMethod · 0.45
execute_instructionMethod · 0.45
to_bytesMethod · 0.45
__dir__Method · 0.45
extendMethod · 0.45

Calls 2

borrow_vec_mutMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected