Skip to content

Add support for new REPL in python -m asyncio  #118894

Closed
@sobolevn

Description

@sobolevn

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

Metadata

Metadata

Assignees

Labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions