]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020)
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Tue, 10 Nov 2020 13:58:31 +0000 (15:58 +0200)
committerGitHub <noreply@github.com>
Tue, 10 Nov 2020 13:58:31 +0000 (15:58 +0200)
commit42d873c63aa9d160c132be4a34599531574db12c
tree52d68f9f283cfe6c7b91239f7bce075ed1e1f418
parent0b9c4c6fcf2b0673fa45ddfa092934a9d5479b8c
bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020)

The overflow occurs under some circumstances when a task or future
recursively returns itself.

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Lib/asyncio/base_futures.py
Lib/test/test_asyncio/test_futures2.py [new file with mode: 0644]
Misc/NEWS.d/next/Library/2020-10-29-11-17-35.bpo-42183.50ZcIi.rst [new file with mode: 0644]