Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
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
cpython/Lib/asyncio/__main__.py
Lines 108 to 111 in2f4db5a
| try: | |
| importreadline# NoQA | |
| exceptImportError: | |
| pass |
and inserting
import readline # NoQA before line 121:cpython/Lib/asyncio/__main__.py
Lines 120 to 126 in2f4db5a
| 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