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

Method slot_str

crates/vm/src/builtins/object.rs:377–380  ·  view source on GitHub ↗
(zelf: &PyObject, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

375 /// Return str(self).
376 #[pyslot]
377 fn slot_str(zelf: &PyObject, vm: &VirtualMachine) -> PyResult<PyStrRef> {
378 // FIXME: try tp_repr first and fallback to object.__repr__
379 zelf.repr(vm)
380 }
381
382 #[pyslot]
383 fn slot_repr(zelf: &PyObject, vm: &VirtualMachine) -> PyResult<PyStrRef> {

Callers

nothing calls this directly

Calls 1

reprMethod · 0.45

Tested by

no test coverage detected