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

Function _main

Tools/clinic/libclinic/cpp.py:185–193  ·  view source on GitHub ↗
(filenames: list[str] | None = None)

Source from the content-addressed store, hash-verified

183
184
185def _main(filenames: list[str] | None = None) -> None:
186 filenames = filenames or sys.argv[1:]
187 for filename in filenames:
188 with open(filename) as f:
189 cpp = Monitor(filename, verbose=True)
190 print()
191 print(filename)
192 for line in f:
193 cpp.writeline(line)
194
195
196if __name__ == '__main__':

Callers 1

cpp.pyFile · 0.70

Calls 3

writelineMethod · 0.95
MonitorClass · 0.85
openFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…