-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Closed
Labels
topic-asynciotopic-replRelated to the interactive shellRelated to the interactive shelltype-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
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
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
cpython/Lib/_pyrepl/simple_interact.py
Lines 81 to 83 in c68acb1
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
Metadata
Metadata
Assignees
Labels
topic-asynciotopic-replRelated to the interactive shellRelated to the interactive shelltype-featureA feature request or enhancementA feature request or enhancement
Projects
Status
Done