MCPcopy Index your code
hub / github.com/python/cpython / _ctoi

Function _ctoi

Lib/curses/ascii.py:48–52  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

46]
47
48def _ctoi(c):
49 if isinstance(c, str):
50 return ord(c)
51 else:
52 return c
53
54def isalnum(c): return isalpha(c) or isdigit(c)
55def isalpha(c): return isupper(c) or islower(c)

Callers 15

isasciiFunction · 0.85
isblankFunction · 0.85
iscntrlFunction · 0.85
isdigitFunction · 0.85
isgraphFunction · 0.85
islowerFunction · 0.85
isprintFunction · 0.85
isspaceFunction · 0.85
isupperFunction · 0.85
isxdigitFunction · 0.85
isctrlFunction · 0.85
ismetaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…