MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __init__

Method __init__

tools/python-3.11.9-amd64/Lib/code.py:170–182  ·  view source on GitHub ↗

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>")

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 1

resetbufferMethod · 0.95

Tested by

no test coverage detected