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

Method __reversed__

crates/vm/src/builtins/weakproxy.rs:97–100  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

95
96 #[pymethod]
97 fn __reversed__(&self, vm: &VirtualMachine) -> PyResult {
98 let obj = self.try_upgrade(vm)?;
99 reversed(obj, vm)
100 }
101 fn __contains__(&self, needle: PyObjectRef, vm: &VirtualMachine) -> PyResult<bool> {
102 self.try_upgrade(vm)?
103 .sequence_unchecked()

Callers

nothing calls this directly

Calls 2

reversedFunction · 0.85
try_upgradeMethod · 0.45

Tested by

no test coverage detected