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

Function is_pots

Tools/c-analyzer/c_parser/match.py:36–44  ·  view source on GitHub ↗
(typespec, *,
            _regex=re.compile(rf'^{SIMPLE_TYPE}$', re.VERBOSE),
            )

Source from the content-addressed store, hash-verified

34
35
36def is_pots(typespec, *,
37 _regex=re.compile(rf'^{SIMPLE_TYPE}$', re.VERBOSE),
38 ):
39
40 if not typespec:
41 return None
42 if type(typespec) is not str:
43 _, _, _, typespec, _ = _info.get_parsed_vartype(typespec)
44 return _regex.match(typespec) is not None
45
46
47def is_funcptr(vartype):

Callers 3

resolve_declFunction · 0.90
_dump_unresolvedFunction · 0.90
_check_typespecFunction · 0.90

Calls 2

compileMethod · 0.45
matchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…