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

Method try_not_released

crates/vm/src/builtins/memory.rs:134–140  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

132 }
133
134 fn try_not_released(&self, vm: &VirtualMachine) -> PyResult<()> {
135 if self.released.load() {
136 Err(vm.new_value_error("operation forbidden on released memoryview object"))
137 } else {
138 Ok(())
139 }
140 }
141
142 fn getitem_by_idx(&self, i: isize, vm: &VirtualMachine) -> PyResult {
143 if self.desc.ndim() != 1 {

Callers 15

objMethod · 0.80
nbytesMethod · 0.80
readonlyMethod · 0.80
itemsizeMethod · 0.80
ndimMethod · 0.80
shapeMethod · 0.80
stridesMethod · 0.80
suboffsetsMethod · 0.80
formatMethod · 0.80
contiguousMethod · 0.80
c_contiguousMethod · 0.80
f_contiguousMethod · 0.80

Calls 2

ErrClass · 0.50
loadMethod · 0.45

Tested by

no test coverage detected