]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-84995: Run sys.__interactivehook__() on asyncio REPL startup (#20517)
authorRémi Lapeyre <remi.lapeyre@lenstra.fr>
Fri, 1 Mar 2024 19:39:16 +0000 (20:39 +0100)
committerGitHub <noreply@github.com>
Fri, 1 Mar 2024 19:39:16 +0000 (11:39 -0800)
commitb5949eac6220ee8002971b5e7026432ac7990c74
tree31ce0e7194306baa3afdfba3b3fcc2584aeb7aef
parente6e35327d87e5456ba2178915e4f523a42051d4b
gh-84995: Run sys.__interactivehook__() on asyncio REPL startup (#20517)

This makes the asyncio REPL (`python -m asyncio`) more usable
and similar to the regular REPL.

This exposes register_readline() as a top-level function in site.py,
but it's intentionally undocumented.

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: Itamar Oren <itamarost@gmail.com>
Lib/asyncio/__main__.py
Lib/site.py
Misc/NEWS.d/next/Library/2020-05-29-18-08-54.bpo-40818.Ij8ffq.rst [new file with mode: 0644]