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

Function repr

crates/vm/src/stdlib/builtins.rs:1023–1025  ·  view source on GitHub ↗
(obj: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1021
1022 #[pyfunction]
1023 fn repr(obj: PyObjectRef, vm: &VirtualMachine) -> PyResult<PyStrRef> {
1024 obj.repr(vm)
1025 }
1026
1027 #[pyfunction]
1028 pub fn reversed(obj: PyObjectRef, vm: &VirtualMachine) -> PyResult {

Callers 15

_partial_reprFunction · 0.85
_formatFunction · 0.85
disFunction · 0.85
escape_encodeFunction · 0.85
__repr__Method · 0.85
formatyearMethod · 0.85
formatyearMethod · 0.85
msgMethod · 0.85
testFunction · 0.85
formatannotationFunction · 0.85
formatargvaluesFunction · 0.85

Calls 1

reprMethod · 0.45

Tested by 15

test_rMethod · 0.68
test_wb_1Method · 0.68
test_r_latinMethod · 0.68
test_w_big5_ignoreMethod · 0.68
test_r_1_replaceMethod · 0.68
test_multiple_acquireMethod · 0.68
test_reprMethod · 0.68
test_enable_fileMethod · 0.68
test_reprMethod · 0.68