]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 10 Nov 2020 14:20:52 +0000 (06:20 -0800)
committerGitHub <noreply@github.com>
Tue, 10 Nov 2020 14:20:52 +0000 (06:20 -0800)
commit90115a2cf7033c990a54d1ecb90ebd850b5f13cf
tree979da20dec8efcb647078166d55fb2801aa825ba
parent2a86ade9e38168ba49c68d1dd52ced588a80d945
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>
(cherry picked from commit 42d873c63aa9d160c132be4a34599531574db12c)

Co-authored-by: Andrew Svetlov <andrew.svetlov@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]