MCPcopy
hub / github.com/fluentpython/example-code-2e / main

Function main

18-with-match/lispy/py3.9/lis.py:203–208  ·  view source on GitHub ↗
(args: list[str])

Source from the content-addressed store, hash-verified

201 return result
202
203def main(args: list[str]) -> None:
204 if len(args) == 1:
205 with open(args[0]) as fp:
206 run(fp.read())
207 else:
208 repl()
209
210if __name__ == '__main__':
211 import sys

Callers 1

lis.pyFile · 0.70

Calls 3

readMethod · 0.80
runFunction · 0.70
replFunction · 0.70

Tested by

no test coverage detected