MCPcopy 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
1677impl ToPyObject for String {
1678 fn to_pyobject(self, vm: &VirtualMachine) -> PyObjectRef {
1679 vm.ctx.new_str(self).into()
1680 }
1681}
1682
1683impl ToPyObject for Wtf8Buf {

Callers 15

nextMethod · 0.45
__add__Method · 0.45
_getitemMethod · 0.45
splitMethod · 0.45
splitlinesMethod · 0.45
partitionMethod · 0.45
rpartitionMethod · 0.45
translateMethod · 0.45
maketransMethod · 0.45
__getnewargs__Method · 0.45
as_numberMethod · 0.45
as_numberMethod · 0.45

Calls 4

latin1_charMethod · 0.80
new_strMethod · 0.45
to_u32Method · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected