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>")
| 168 | """ |
| 169 | |
| 170 | def __init__(self, locals=None, filename="<console>"): |
| 171 | """Constructor. |
| 172 | |
| 173 | The optional locals argument will be passed to the |
| 174 | InteractiveInterpreter base class. |
| 175 | |
| 176 | The optional filename argument should specify the (file)name |
| 177 | of the input stream; it will show up in tracebacks. |
| 178 | |
| 179 | """ |
| 180 | InteractiveInterpreter.__init__(self, locals) |
| 181 | self.filename = filename |
| 182 | self.resetbuffer() |
| 183 | |
| 184 | def resetbuffer(self): |
| 185 | """Reset the input buffer.""" |
nothing calls this directly
no test coverage detected