Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

asyncio REPL is not working on Windows #118817

Closed
Labels
3.13bugs and security fixes3.14bugs and security fixesOS-windowstype-bugAn unexpected behavior, bug, or error
@lschoe

Description

@lschoe

Bug report

Bug description:

Running the asyncio REPL with Python 3.13b1 on Windows gives

>py-3.13-masyncioTraceback (mostrecentcalllast):File"<frozen runpy>",line198,in_run_module_as_mainFile"<frozen runpy>",line88,in_run_codeFile"C:\Users\Berry\AppData\Local\Programs\Python\Python313\Lib\asyncio\__main__.py",line126,in<module>readline.set_completer(completer.complete)^^^^^^^^

due to missingreadline package.

Easy to fix by removing

try:
importreadline# NoQA
exceptImportError:
pass

and insertingimport readline # NoQA before line 121:
try:
importrlcompleter
except:
pass
else:
completer=rlcompleter.Completer(console.locals)
readline.set_completer(completer.complete)

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixesOS-windowstype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp