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

Method runsource

Lib/idlelib/pyshell.py:680–687  ·  view source on GitHub ↗

Extend base class method: Stuff the source in the line cache first

(self, source)

Source from the content-addressed store, hash-verified

678 self.runcode(code)
679
680 def runsource(self, source):
681 "Extend base class method: Stuff the source in the line cache first"
682 filename = self.stuffsource(source)
683 # at the moment, InteractiveInterpreter expects str
684 assert isinstance(source, str)
685 # InteractiveInterpreter.runsource() calls its runcode() method,
686 # which is overridden (see below)
687 return InteractiveInterpreter.runsource(self, source, filename)
688
689 def stuffsource(self, source):
690 "Stuff source in the filename cache"

Callers 1

runitMethod · 0.45

Calls 1

stuffsourceMethod · 0.95

Tested by

no test coverage detected