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

Function always_true

Tools/cases_generator/generators_common.py:95–98  ·  view source on GitHub ↗
(tkn: Token | None)

Source from the content-addressed store, hash-verified

93]
94
95def always_true(tkn: Token | None) -> bool:
96 if tkn is None:
97 return False
98 return tkn.text in {"true", "1"}
99
100NON_ESCAPING_DEALLOCS = {
101 "_PyFloat_ExactDealloc",

Callers 6

deopt_ifMethod · 0.90
error_ifMethod · 0.90
exit_ifMethod · 0.90
exit_if_afterMethod · 0.90
deopt_ifMethod · 0.85
error_ifMethod · 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…