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

Method to_pyobject

crates/vm/src/builtins/bytes.rs:58–60  ·  view source on GitHub ↗
(self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

56
57impl ToPyObject for Vec<u8> {
58 fn to_pyobject(self, vm: &VirtualMachine) -> PyObjectRef {
59 vm.ctx.new_bytes(self).into()
60 }
61}
62
63impl Deref for PyBytes {

Callers 2

__getnewargs__Method · 0.45
__reduce__Method · 0.45

Calls 1

new_bytesMethod · 0.45

Tested by

no test coverage detected