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

Method runcommand

Lib/idlelib/pyshell.py:750–760  ·  view source on GitHub ↗

Run the code without invoking the debugger

(self, code)

Source from the content-addressed store, hash-verified

748 del cache[key]
749
750 def runcommand(self, code):
751 "Run the code without invoking the debugger"
752 # The code better not raise an exception!
753 if self.tkconsole.executing:
754 self.display_executing_dialog()
755 return 0
756 if self.rpcclt:
757 self.rpcclt.remotequeue("exec", "runcode", (code,), {})
758 else:
759 exec(code, self.locals)
760 return 1
761
762 def runcode(self, code):
763 "Override base class method"

Callers 4

transfer_pathMethod · 0.95
prepend_syspathMethod · 0.95
mainFunction · 0.80
run_module_eventMethod · 0.80

Calls 2

remotequeueMethod · 0.80

Tested by

no test coverage detected