MCPcopy Index your code
hub / github.com/bslatkin/effectivepython / main

Function main

example_code/item_086.py:55–62  ·  view source on GitHub ↗
(argv)

Source from the content-addressed store, hash-verified

53 raise KeyboardInterrupt
54
55 def main(argv):
56 while True:
57 try:
58 do_processing() # Interrupted
59 except Exception as e:
60 print("Error:", type(e), e)
61
62 return 0
63
64 if __name__ == "__main__":
65 sys.exit(main(sys.argv))

Callers 1

item_086.pyFile · 0.70

Calls 3

do_processingFunction · 0.85
openFunction · 0.85
inputFunction · 0.85

Tested by

no test coverage detected