Content-Length: 298493 | pFad | https://github.com/python/cpython/issues/118894

4C Add support for new REPL in `python -m asyncio` · Issue #118894 · python/cpython · GitHub
Skip to content

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

@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









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/118894

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy