Skip to content
1 change: 1 addition & 0 deletions Lib/asyncio/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,4 +240,5 @@ def interrupt(self) -> None:
break

console.write('exiting asyncio REPL...\n')
loop.close()
sys.exit(return_code)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The asyncio REPL now properly closes the loop upon the end of interactive session.
Comment thread
johnslavik marked this conversation as resolved.
Outdated
Previously, it could cause surprising warnings.
Contributed by Bartosz Sławecki.
Loading