summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2024-05-01 11:01:16 (GMT)
committerGitHub <noreply@github.com>2024-05-01 11:01:16 (GMT)
commitc1bf4874c1e9db2beda1d62c8c241229783c789b (patch)
tree9a03e0d5d1e32979489f84319484e7a62e0ed352 /Python/sysmodule.c
parentf6fab21721c8aedc5dca97dbeb6292a067c19bf1 (diff)
downloadcpython-c1bf4874c1e9db2beda1d62c8c241229783c789b.zip
cpython-c1bf4874c1e9db2beda1d62c8c241229783c789b.tar.gz
cpython-c1bf4874c1e9db2beda1d62c8c241229783c789b.tar.bz2
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.
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions