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

Method make_code

crates/vm/src/builtins/code.rs:346–348  ·  view source on GitHub ↗
(&self, code: CodeObject)

Source from the content-addressed store, hash-verified

344 }
345
346 fn make_code(&self, code: CodeObject) -> Self::Constant {
347 Literal(self.0.new_code(code).into())
348 }
349}
350
351pub type CodeObject = bytecode::CodeObject<Literal>;

Callers

nothing calls this directly

Calls 2

LiteralClass · 0.70
new_codeMethod · 0.45

Tested by

no test coverage detected