Feature or enhancement
They are different now:

Hm, right now I don't see any simple way of merging these two together:
|
class AsyncIOInteractiveConsole(code.InteractiveConsole): |
|
|
|
def __init__(self, locals, loop): |
|
super().__init__(locals) |
|
self.compile.compiler.flags |= ast.PyCF_ALLOW_TOP_LEVEL_AWAIT |
|
|
|
self.loop = loop |
and
|
def run_multiline_interactive_console( |
|
mainmodule: ModuleType | None= None, future_flags: int = 0 |
|
) -> None: |
I think that this would require some API change. Not sure which one, though :(
Refs #111201
Linked PRs
Feature or enhancement
They are different now:

Hm, right now I don't see any simple way of merging these two together:
cpython/Lib/asyncio/__main__.py
Lines 15 to 21 in c68acb1
and
cpython/Lib/_pyrepl/simple_interact.py
Lines 81 to 83 in c68acb1
I think that this would require some API change. Not sure which one, though :(
Refs #111201
Linked PRs