Irit Katriel
ebef3c5ba4
[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)
2024-05-01 18:23:29 +01:00
..
2022-10-27 11:45:42 +02:00
2022-06-13 20:09:40 +02:00
2022-06-13 20:09:40 +02:00
2022-06-16 13:49:43 +02:00
2023-06-14 00:50:08 +00:00
2022-11-28 16:40:08 +01:00
2024-05-01 18:23:29 +01:00
2022-10-31 13:08:03 +00:00
2022-04-07 01:05:27 +02:00
2022-06-16 13:49:43 +02:00
2022-02-24 17:51:59 +01:00
2023-03-07 17:10:58 -07:00
2022-09-27 23:23:42 +01:00
2022-11-28 16:40:08 +01:00
2023-07-24 19:54:42 +00:00
2024-04-25 22:29:45 -07:00
2023-05-10 22:40:59 +00:00
2023-03-09 09:46:21 -07:00
2023-07-24 20:13:07 +00:00
2023-07-27 13:15:47 -06:00
2022-06-20 16:04:52 +02:00
2024-03-19 16:06:15 +00:00
2023-05-21 14:45:48 +01:00
2023-05-08 09:52:41 -07:00
2022-06-16 13:49:43 +02:00
2023-07-18 15:14:10 +03:00
2023-08-16 11:58:54 +02:00
2023-05-02 13:38:46 +02:00
2022-06-20 16:04:52 +02:00
2022-06-16 13:49:43 +02:00
2022-07-27 20:28:06 +02:00
2022-06-17 16:12:00 +02:00
2023-05-30 16:50:23 +01:00
2023-07-24 19:54:42 +00:00
2023-07-24 20:13:07 +00:00
2024-02-13 10:45:59 +01:00
2022-06-20 16:04:52 +02:00
2022-07-27 20:28:06 +02:00
2023-01-27 14:45:08 +00:00
2022-11-28 16:40:08 +01:00
2022-03-14 21:48:00 +09:00
2022-02-24 17:51:59 +01:00
2022-06-20 16:04:52 +02:00
2023-11-27 23:51:12 +00:00
2022-06-20 16:04:52 +02:00
2022-06-13 20:09:40 +02:00