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

Method co_code

crates/vm/src/builtins/code.rs:835–837  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

833
834 #[pygetset]
835 pub fn co_code(&self, vm: &VirtualMachine) -> crate::builtins::PyBytesRef {
836 vm.ctx.new_bytes(self.code.instructions.original_bytes())
837 }
838
839 #[pygetset]
840 pub fn _co_code_adaptive(&self, vm: &VirtualMachine) -> crate::builtins::PyBytesRef {

Callers

nothing calls this directly

Calls 2

original_bytesMethod · 0.80
new_bytesMethod · 0.45

Tested by

no test coverage detected