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

Function main

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

Source from the content-addressed store, hash-verified

203 return result
204
205def main(args: list[str]) -> None:
206 if len(args) == 1:
207 with open(args[0]) as fp:
208 run(fp.read())
209 else:
210 repl()
211
212if __name__ == '__main__':
213 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