summaryrefslogtreecommitdiffstats
path: root/Python/frame.c
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2024-05-01 17:23:29 (GMT)
committerGitHub <noreply@github.com>2024-05-01 17:23:29 (GMT)
commitebef3c5ba48aa4d5bdf8c02aba6c6356aef9d56b (patch)
tree7d4a2979efa2dbd1d33b4c1d33fb1a533579e1e5 /Python/frame.c
parentf5406ef454662b98df107775d18ff71ae6849618 (diff)
downloadcpython-ebef3c5ba48aa4d5bdf8c02aba6c6356aef9d56b.zip
cpython-ebef3c5ba48aa4d5bdf8c02aba6c6356aef9d56b.tar.gz
cpython-ebef3c5ba48aa4d5bdf8c02aba6c6356aef9d56b.tar.bz2
[3.12] gh-116767: fix crash on 'async with' with many context managers (GH-118348) (#118477)
gh-116767: fix crash on 'async with' with many context managers (GH-118348) Account for `add_stopiteration_handler` pushing a block for `async with`. To allow generator functions that previously almost hit the `CO_MAXBLOCKS` limit by nesting non-async blocks, the limit is increased by 1. This increase allows one more block in non-generator functions. (cherry picked from commit c1bf4874c1e9db2beda1d62c8c241229783c789b)
Diffstat (limited to 'Python/frame.c')
0 files changed, 0 insertions, 0 deletions