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

Method repr

crates/vm/src/coroutine.rs:274–282  ·  view source on GitHub ↗
(&self, jen: &PyObject, id: usize, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

272 }
273
274 pub fn repr(&self, jen: &PyObject, id: usize, vm: &VirtualMachine) -> String {
275 let qualname = self.qualname();
276 format!(
277 "<{} object {} at {:#x}>",
278 gen_name(jen, vm),
279 qualname.as_wtf8(),
280 id
281 )
282 }
283}
284
285pub fn is_gen_exit(exc: &Py<PyBaseException>, vm: &VirtualMachine) -> bool {

Callers 15

delMethod · 0.45
deleteMethod · 0.45
getMethod · 0.45
delMethod · 0.45
repr_wtf8Method · 0.45
task_step_handle_resultFunction · 0.45
repr_strMethod · 0.45
collection_reprFunction · 0.45
format_internalFunction · 0.45
spec_format_stringFunction · 0.45
import_starMethod · 0.45

Calls 1

qualnameMethod · 0.80

Tested by

no test coverage detected