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

Method runcode

Lib/_pyrepl/console.py:180–188  ·  view source on GitHub ↗
(self, code)

Source from the content-addressed store, hash-verified

178 self.write(''.join(lines))
179
180 def runcode(self, code):
181 try:
182 exec(code, self.locals)
183 except SystemExit:
184 raise
185 except BaseException:
186 self.showtraceback()
187 return self.STATEMENT_FAILED
188 return None
189
190 def runsource(self, source, filename="<input>", symbol="single"):
191 try:

Callers 1

runsourceMethod · 0.95

Calls 1

showtracebackMethod · 0.45

Tested by

no test coverage detected