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

Method __getnewargs__

crates/vm/src/builtins/str.rs:1480–1482  ·  view source on GitHub ↗
(zelf: PyRef<Self>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1478
1479 #[pymethod]
1480 fn __getnewargs__(zelf: PyRef<Self>, vm: &VirtualMachine) -> PyObjectRef {
1481 (zelf.as_wtf8(),).to_pyobject(vm)
1482 }
1483
1484 #[pymethod]
1485 fn __str__(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<PyStrRef> {

Callers

nothing calls this directly

Calls 2

to_pyobjectMethod · 0.45
as_wtf8Method · 0.45

Tested by

no test coverage detected