@@ -202,7 +202,7 @@ def resetbuffer(self):
202202 """Reset the input buffer."""
203203 self .buffer = []
204204
205- def interact (self , banner = None , exitmsg = None , * , use_pyrepl = None ):
205+ def interact (self , banner = None , exitmsg = None , * , use_pyrepl = False ):
206206 """Closely emulate the interactive Python console.
207207
208208 The optional banner argument specifies the banner to print
@@ -218,8 +218,8 @@ def interact(self, banner=None, exitmsg=None, *, use_pyrepl=None):
218218 a default message is printed.
219219
220220 The use_pyrepl argument controls whether to use the pyrepl-based REPL
221- when available. When True, pyrepl is used. When False, the basic
222- readline-based REPL is used. When None (the default) , pyrepl is used
221+ when available. When True, pyrepl is used. When False ( the default),
222+ the basic readline-based REPL is used. When None, pyrepl is used
223223 automatically if available and the PYTHON_BASIC_REPL environment
224224 variable is not set.
225225
@@ -378,7 +378,7 @@ def __call__(self, code=None):
378378 raise SystemExit (code )
379379
380380
381- def interact (banner = None , readfunc = None , local = None , exitmsg = None , local_exit = False , * , use_pyrepl = None ):
381+ def interact (banner = None , readfunc = None , local = None , exitmsg = None , local_exit = False , * , use_pyrepl = False ):
382382 """Closely emulate the interactive Python interpreter.
383383
384384 This is a backwards compatible interface to the InteractiveConsole
0 commit comments