Extend base class method: Stuff the source in the line cache first
(self, source)
| 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" |