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

Function ascii

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

Source from the content-addressed store, hash-verified

65
66 #[pyfunction]
67 pub fn ascii(obj: PyObjectRef, vm: &VirtualMachine) -> PyResult<PyStrRef> {
68 obj.ascii(vm)
69 }
70
71 #[pyfunction]
72 fn bin(x: PyIntRef) -> String {

Callers 15

disFunction · 0.85
test_undecodable_envMethod · 0.85
test_asciiMethod · 0.85
test_codingMethod · 0.85
test_invalid_utf8_argMethod · 0.85
test_osx_android_utf8Method · 0.85
checkMethod · 0.85
test_asciiMethod · 0.85
_check_uniMethod · 0.85
childMethod · 0.85
test_non_asciiMethod · 0.85

Calls 1

asciiMethod · 0.80

Tested by 15

test_undecodable_envMethod · 0.68
test_asciiMethod · 0.68
test_codingMethod · 0.68
test_invalid_utf8_argMethod · 0.68
test_osx_android_utf8Method · 0.68
checkMethod · 0.68
test_asciiMethod · 0.68
_check_uniMethod · 0.68
childMethod · 0.68
test_non_asciiMethod · 0.68
check_getwchMethod · 0.68