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

Method to_pyobject

crates/vm/src/function/arithmetic.rs:35–40  ·  view source on GitHub ↗
(self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

33 T: ToPyObject,
34{
35 fn to_pyobject(self, vm: &VirtualMachine) -> PyObjectRef {
36 match self {
37 Self::Implemented(v) => v.to_pyobject(vm),
38 Self::NotImplemented => vm.ctx.not_implemented(),
39 }
40 }
41}
42
43pub type PyComparisonValue = PyArithmeticValue<bool>;

Callers

nothing calls this directly

Calls 1

not_implementedMethod · 0.45

Tested by

no test coverage detected