MCPcopy Index your code
hub / github.com/bpython/bpython / main

Function main

doc/sphinx/source/simplerepl.py:118–129  ·  view source on GitHub ↗
(args=None, locals_=None, banner=None)

Source from the content-addressed store, hash-verified

116
117
118def main(args=None, locals_=None, banner=None):
119 translations.init()
120 config = Config(default_config_path())
121 module_gatherer = ModuleGatherer()
122 while module_gatherer.find_coroutine():
123 pass
124 with SimpleRepl(config) as r:
125 r.width = 50
126 r.height = 10
127 while True:
128 r.print_output()
129 r.get_input()
130
131
132if __name__ == "__main__":

Callers 1

simplerepl.pyFile · 0.70

Calls 7

find_coroutineMethod · 0.95
ConfigClass · 0.90
default_config_pathFunction · 0.90
ModuleGathererClass · 0.90
SimpleReplClass · 0.85
print_outputMethod · 0.80
get_inputMethod · 0.80

Tested by

no test coverage detected