Visitar URL original
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

Closed

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

Activity

  1. self-assigned this
    on May 22, 2024
  2. added a commit that references this issue on May 22, 2024
  3. added a commit that references this issue on May 31, 2024
  4. added a commit that references this issue on May 31, 2024
  5. added a commit that references this issue on May 31, 2024
  6. moved this from Todo to Done in asyncioon Jun 2, 2024
  7. added a commit that references this issue on Jul 11, 2024
  8. added a commit that references this issue on Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions