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

Method condition

Tools/clinic/libclinic/cpp.py:61–65  ·  view source on GitHub ↗

Returns the current preprocessor state, as a single #if condition.

(self)

Source from the content-addressed store, hash-verified

59 return str(self.line_number).rjust(4) + ": " + self.condition()
60
61 def condition(self) -> str:
62 """
63 Returns the current preprocessor state, as a single #if condition.
64 """
65 return " && ".join(condition for token, condition in self.stack)
66
67 def fail(self, msg: str) -> NoReturn:
68 raise ParseError(msg, filename=self.filename, lineno=self.line_number)

Callers 3

__repr__Method · 0.95
statusMethod · 0.95
process_methoddefMethod · 0.45

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected