Constructor. The optional locals argument will be passed to the InteractiveInterpreter base class. The optional filename argument should specify the (file)name of the input stream; it will show up in tracebacks.
(self, locals=None, filename="<console>")
| 410 | """ |
| 411 | |
| 412 | def __init__(self, locals=None, filename="<console>"): |
| 413 | """Constructor. |
| 414 | |
| 415 | The optional locals argument will be passed to the |
| 416 | InteractiveInterpreter base class. |
| 417 | |
| 418 | The optional filename argument should specify the (file)name |
| 419 | of the input stream; it will show up in tracebacks. |
| 420 | |
| 421 | """ |
| 422 | InteractiveInterpreter.__init__(self, locals) |
| 423 | self.filename = filename |
| 424 | self.resetbuffer() |
| 425 | |
| 426 | def resetbuffer(self): |
| 427 | """Reset the input buffer.""" |
nothing calls this directly
no test coverage detected