MCPcopy 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

69def ismeta(c): return _ctoi(c) > 127
70
71def ascii(c):
72 if isinstance(c, str):
73 return chr(_ctoi(c) & 0x7f)
74 else:
75 return _ctoi(c) & 0x7f
76
77def ctrl(c):
78 if isinstance(c, str):

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
test_asciiMethod · 0.85
_check_uniMethod · 0.85

Calls 1

_ctoiFunction · 0.85

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
test_asciiMethod · 0.68
_check_uniMethod · 0.68
childMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…