Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
dis
Function · 0.85
test_undecodable_env
Method · 0.85
test_ascii
Method · 0.85
test_coding
Method · 0.85
test_invalid_utf8_arg
Method · 0.85
test_osx_android_utf8
Method · 0.85
test_displayhook_unencodable
Method · 0.85
check
Method · 0.85
test_ascii
Method · 0.85
_check_uni
Method · 0.85
child
Method · 0.85
test_non_ascii
Method · 0.85
Calls
1
ascii
Method · 0.80
Tested by
15
test_undecodable_env
Method · 0.68
test_ascii
Method · 0.68
test_coding
Method · 0.68
test_invalid_utf8_arg
Method · 0.68
test_osx_android_utf8
Method · 0.68
test_displayhook_unencodable
Method · 0.68
check
Method · 0.68
test_ascii
Method · 0.68
_check_uni
Method · 0.68
child
Method · 0.68
test_non_ascii
Method · 0.68
check_getwch
Method · 0.68