Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ ascii
Function
ascii
Lib/curses/ascii.py:71–75 ·
view source on GitHub ↗
(c)
Source
from the content-addressed store, hash-verified
69
def
ismeta(c):
return
_ctoi(c) > 127
70
71
def
ascii(c):
72
if
isinstance(c, str):
73
return
chr(_ctoi(c) & 0x7f)
74
else
:
75
return
_ctoi(c) & 0x7f
76
77
def
ctrl(c):
78
if
isinstance(c, str):
Callers
15
dis
Function · 0.85
test_doctest_main_issue4197
Method · 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
test_ascii
Method · 0.85
_check_uni
Method · 0.85
Calls
1
_ctoi
Function · 0.85
Tested by
15
test_doctest_main_issue4197
Method · 0.68
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
test_ascii
Method · 0.68
_check_uni
Method · 0.68
child
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…