Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
57
impl ToPyObject for Vec<u8> {
58
fn to_pyobject(self, vm: &VirtualMachine) -> PyObjectRef {
59
vm.ctx.new_bytes(self).into()
60
}
61
}
62
63
impl Deref for PyBytes {
Callers
2
__getnewargs__
Method · 0.45
__reduce__
Method · 0.45
Calls
1
new_bytes
Method · 0.45
Tested by
no test coverage detected