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/str.rs:1678–1680 ·
view source on GitHub ↗
(self, vm: &VirtualMachine)
Source
from the content-addressed store, hash-verified
1676
1677
impl ToPyObject for String {
1678
fn to_pyobject(self, vm: &VirtualMachine) -> PyObjectRef {
1679
vm.ctx.new_str(self).into()
1680
}
1681
}
1682
1683
impl ToPyObject for Wtf8Buf {
Callers
15
next
Method · 0.45
__add__
Method · 0.45
_getitem
Method · 0.45
split
Method · 0.45
splitlines
Method · 0.45
partition
Method · 0.45
rpartition
Method · 0.45
translate
Method · 0.45
maketrans
Method · 0.45
__getnewargs__
Method · 0.45
as_number
Method · 0.45
as_number
Method · 0.45
Calls
4
latin1_char
Method · 0.80
new_str
Method · 0.45
to_u32
Method · 0.45
clone
Method · 0.45
Tested by
no test coverage detected