Title: bpo-32526: Closing async generator while it is running does not raise an exception by achimnol · Pull Request #5182 · python/cpython · GitHub
Open Graph Title: bpo-32526: Closing async generator while it is running does not raise an exception by achimnol · Pull Request #5182 · python/cpython
X Title: bpo-32526: Closing async generator while it is running does not raise an exception by achimnol · Pull Request #5182 · python/cpython
Description: Here are my first draft PR to pass the async_generator test case provided by @njsmith. I have reset gi_running value to 1 after gen_send_ex() and _gen_throw() calls in async generators and clear it to 0 when they close. This PR obviously requires more test cases regarding athrow() calls, but I submit at this stage to check if my approach is correct first. https://bugs.python.org/issue32526
Open Graph Description: Here are my first draft PR to pass the async_generator test case provided by @njsmith. I have reset gi_running value to 1 after gen_send_ex() and _gen_throw() calls in async generators and clear it...
X Description: Here are my first draft PR to pass the async_generator test case provided by @njsmith. I have reset gi_running value to 1 after gen_send_ex() and _gen_throw() calls in async generators and clear it...
Opengraph URL: https://github.com/python/cpython/pull/5182
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8aee5a79-7efa-2375-b173-4d7060f5b881 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D536:1A182C:2572D62:3162685:6A5CBE59 |
| html-safe-nonce | 99d27b43618377cecbe37dfcbcc7a8ad78009a5905bbfb51f663f145f0879515 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTM2OjFBMTgyQzoyNTcyRDYyOjMxNjI2ODU6NkE1Q0JFNTkiLCJ2aXNpdG9yX2lkIjoiNzM1MzE2MDM4NTM2ODQ3MzE3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8923dd4ed797f9a395b2a55f3e6515a0aa1e9e78f458ae4caae24eb16918c6b6 |
| hovercard-subject-tag | pull_request:162834436 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/5182/files |
| twitter:image | https://avatars.githubusercontent.com/u/555156?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/555156?s=400&v=4 |
| og:image:alt | Here are my first draft PR to pass the async_generator test case provided by @njsmith. I have reset gi_running value to 1 after gen_send_ex() and _gen_throw() calls in async generators and clear it... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width