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

Method remove

crates/vm/src/builtins/set.rs:329–331  ·  view source on GitHub ↗
(&self, item: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

327 }
328
329 fn remove(&self, item: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
330 self.retry_op_with_frozenset(&item, vm, |item, vm| self.content.delete(vm, item))
331 }
332
333 fn discard(&self, item: &PyObject, vm: &VirtualMachine) -> PyResult<bool> {
334 self.retry_op_with_frozenset(item, vm, |item, vm| self.content.delete_if_exists(vm, item))

Callers 12

dropMethod · 0.45
unregisterMethod · 0.45
forgetMethod · 0.45
unregister_errorMethod · 0.45
do_deleteMethod · 0.45
untrack_objectMethod · 0.45
promote_survivorsMethod · 0.45
shiftMethod · 0.45
take_positionalMethod · 0.45
vectorcall_wrapperFunction · 0.45
take_next_baseFunction · 0.45

Calls 2

deleteMethod · 0.45

Tested by

no test coverage detected