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

Method __bytes__

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

Source from the content-addressed store, hash-verified

90
91 #[pymethod]
92 fn __bytes__(&self, vm: &VirtualMachine) -> PyResult {
93 self.try_upgrade(vm)?.bytes(vm)
94 }
95
96 #[pymethod]
97 fn __reversed__(&self, vm: &VirtualMachine) -> PyResult {

Callers

nothing calls this directly

Calls 2

bytesMethod · 0.45
try_upgradeMethod · 0.45

Tested by

no test coverage detected