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

Method to_pyobject

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

Source from the content-addressed store, hash-verified

1373
1374impl ToPyObject for CodeObject {
1375 fn to_pyobject(self, vm: &VirtualMachine) -> PyObjectRef {
1376 vm.ctx.new_code(self).into()
1377 }
1378}
1379
1380impl ToPyObject for bytecode::CodeObject {

Callers 5

co_cellvarsMethod · 0.45
co_namesMethod · 0.45
co_freevarsMethod · 0.45
co_positionsMethod · 0.45
replaceMethod · 0.45

Calls 1

new_codeMethod · 0.45

Tested by

no test coverage detected