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

Method make_code

crates/vm/src/stdlib/marshal.rs:414–416  ·  view source on GitHub ↗
(&self, code: CodeObject)

Source from the content-addressed store, hash-verified

412 self.0.ctx.new_tuple(elements.collect()).into()
413 }
414 fn make_code(&self, code: CodeObject) -> Self::Value {
415 self.0.ctx.new_code(code).into()
416 }
417 fn make_stop_iter(&self) -> Result<Self::Value, marshal::MarshalError> {
418 Ok(self.0.ctx.exceptions.stop_iteration.to_owned().into())
419 }

Callers

nothing calls this directly

Calls 1

new_codeMethod · 0.45

Tested by

no test coverage detected