René's URL Explorer Experiment


Title: gh-128078: Clear exception in `anext` before calling `_PyGen_SetStopIterationValue` by picnixz · Pull Request #128780 · python/cpython · GitHub

Open Graph Title: gh-128078: Clear exception in `anext` before calling `_PyGen_SetStopIterationValue` by picnixz · Pull Request #128780 · python/cpython

X Title: gh-128078: Clear exception in `anext` before calling `_PyGen_SetStopIterationValue` by picnixz · Pull Request #128780 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: See #128078 (comment). @kumaraditya303: There are a couple of other calls to _PyGen_SetStopIterationValue() but I'm not well-versed enough in asyncio to know whether I should clear them or not....

X Description: See #128078 (comment). @kumaraditya303: There are a couple of other calls to _PyGen_SetStopIterationValue() but I'm not well-versed enough in asyncio to know whether I should clear them or ...

Opengraph URL: https://github.com/python/cpython/pull/128780

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:5620c8df-293f-8cf8-32d8-47e6708ee8dc
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA08E:14227A:E05E41:12D1216:6B064BAB
html-safe-nonce8b03a4dbbff56cd3f00cef53ccb3618ef935f356de9f9dfa24c5e5f343f241c5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDhFOjE0MjI3QTpFMDVFNDE6MTJEMTIxNjo2QjA2NEJBQiIsInZpc2l0b3JfaWQiOiI4NzAxNDY4ODcyOTI4NTQ1NzA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac24c212a33def5457d21b1c8b7b28cf96c92b9333587ba02e0de7ce7843147256
hovercard-subject-tagpull_request:2273647836
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/128780/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c24332de9724e33b036bb989332c9becd4cf7298b3fd10e3ef1aeb1f67269813/python/cpython/pull/128780
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c24332de9724e33b036bb989332c9becd4cf7298b3fd10e3ef1aeb1f67269813/python/cpython/pull/128780
og:image:altSee #128078 (comment). @kumaraditya303: There are a couple of other calls to _PyGen_SetStopIterationValue() but I'm not well-versed enough in asyncio to know whether I should clear them or not....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepicnixz
hostnamegithub.com
expected-hostnamegithub.com
None772b6997ca4daa0428dd49a25d76052e765555ae560fe9c88517eb828bbd861e
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef1f9a08f7c769a37f1dfc18ad43d463c222a7eea
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/128780#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F128780
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F128780
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/128780
Reloadhttps://github.com/python/cpython/pull/128780
Reloadhttps://github.com/python/cpython/pull/128780
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
picnixz:fix/core/anext-clear-exception-128078https://github.com/picnixz/cpython/tree/fix/core/anext-clear-exception-128078
Conversationhttps://github.com/python/cpython/pull/128780
Commits4 (4)https://github.com/python/cpython/pull/128780/commits
Checkshttps://github.com/python/cpython/pull/128780/checks
Files changedhttps://github.com/python/cpython/pull/128780/files
gh-128078: Clear exception in anext before calling _PyGen_SetStopIterationValuehttps://github.com/python/cpython/pull/128780#top
kumaraditya303https://github.com/kumaraditya303
python:mainhttps://github.com/python/cpython/tree/main
picnixz:fix/core/anext-clear-exception-128078https://github.com/picnixz/cpython/tree/fix/core/anext-clear-exception-128078
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Jan 13, 2025https://github.com/python/cpython/pull/128780#issue-2783754351
Please reload this pagehttps://github.com/python/cpython/pull/128780
#128078 (comment)https://github.com/python/cpython/issues/128078#issuecomment-2585252352
@kumaraditya303https://github.com/kumaraditya303
Async generator/anext with default-tuple-value results in SystemError: returned with exception set #128078https://github.com/python/cpython/issues/128078
Please reload this pagehttps://github.com/python/cpython/pull/128780
picnixzhttps://github.com/picnixz
January 13, 2025 12:43https://github.com/python/cpython/pull/128780#commits-pushed-31c2e9e
https://github.com/picnixz
clear StopAsyncIteration before calling _PyGen_SetStopIterationValuehttps://github.com/python/cpython/pull/128780/commits/31c2e9ec97581fedfbfb0e44e1756676abc938a1
31c2e9ehttps://github.com/python/cpython/pull/128780/commits/31c2e9ec97581fedfbfb0e44e1756676abc938a1
https://github.com/picnixz
blurbhttps://github.com/python/cpython/pull/128780/commits/5db01cd3c20b6d73be8f76cba75b210c65f688b2
5db01cdhttps://github.com/python/cpython/pull/128780/commits/5db01cd3c20b6d73be8f76cba75b210c65f688b2
https://github.com/picnixz
testshttps://github.com/python/cpython/pull/128780/commits/e115e173255fd10889a1284312f3c17e6c99958f
e115e17https://github.com/python/cpython/pull/128780/commits/e115e173255fd10889a1284312f3c17e6c99958f
https://github.com/picnixz
picnixzhttps://github.com/picnixz
markshannonhttps://github.com/markshannon
code ownerhttps://github.com/python/cpython/blob/6ff8f82f92a8af363b2bdd8bbaba5845eef430fc/.github/CODEOWNERS#L27
January 13, 2025 11:54https://github.com/python/cpython/pull/128780#event-15903769901
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jan 13, 2025 https://github.com/python/cpython/pull/128780#ref-issue-2748536442
Async generator/anext with default-tuple-value results in SystemError: returned with exception set #128078 https://github.com/python/cpython/issues/128078
https://github.com/picnixz
picnixzhttps://github.com/picnixz
kumaraditya303https://github.com/kumaraditya303
January 13, 2025 11:54https://github.com/python/cpython/pull/128780#event-15903771274
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jan 13, 2025https://github.com/python/cpython/pull/128780#event-15903771292
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Jan 13, 2025 https://github.com/python/cpython/pull/128780#pullrequestreview-2546469535
View reviewed changes https://github.com/python/cpython/pull/128780/files/e115e173255fd10889a1284312f3c17e6c99958f
Lib/test/test_asyncgen.pyhttps://github.com/python/cpython/pull/128780/files/e115e173255fd10889a1284312f3c17e6c99958f#diff-1da5f0220b91e20c669b0e63724b978d4cf603373c850fbdc705abb2d5937f40
Please reload this pagehttps://github.com/python/cpython/pull/128780
https://github.com/picnixz
https://github.com/kumaraditya303
Update Lib/test/test_asyncgen.pyhttps://github.com/python/cpython/pull/128780/commits/933324363a12bcdce6f58f2e5dc8b22ad7ea8bf3
9333243https://github.com/python/cpython/pull/128780/commits/933324363a12bcdce6f58f2e5dc8b22ad7ea8bf3
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Jan 13, 2025https://github.com/python/cpython/pull/128780#issuecomment-2587015313
Please reload this pagehttps://github.com/python/cpython/pull/128780
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Jan 13, 2025 https://github.com/python/cpython/pull/128780#pullrequestreview-2546526879
View reviewed changes https://github.com/python/cpython/pull/128780/files/933324363a12bcdce6f58f2e5dc8b22ad7ea8bf3
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jan 13, 2025https://github.com/python/cpython/pull/128780#event-15904450362
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
76ffaefhttps://github.com/python/cpython/commit/76ffaef729c91bb79da6df2ade48f3ec51118300
Jan 13, 2025https://github.com/python/cpython/pull/128780#event-15904524896
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Jan 13, 2025https://github.com/python/cpython/pull/128780#event-15904525520
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Jan 13, 2025https://github.com/python/cpython/pull/128780#event-15904529682
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jan 13, 2025https://github.com/python/cpython/pull/128780#issuecomment-2587033311
@picnixzhttps://github.com/picnixz
@kumaraditya303https://github.com/kumaraditya303
Please reload this pagehttps://github.com/python/cpython/pull/128780
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jan 13, 2025https://github.com/python/cpython/pull/128780#issuecomment-2587033342
@picnixzhttps://github.com/picnixz
@kumaraditya303https://github.com/kumaraditya303
Please reload this pagehttps://github.com/python/cpython/pull/128780
miss-islingtonhttps://github.com/miss-islington
Jan 13, 2025 https://github.com/python/cpython/pull/128780#ref-commit-a6724dd
https://github.com/picnixz
https://github.com/kumaraditya303
https://github.com/miss-islington
pythongh-128078https://github.com/python/cpython/issues/128078
: Clear exception inhttps://github.com/miss-islington/cpython/commit/a6724dd561f2f629e3b3d709024e33bd640e4bc7
anexthttps://github.com/miss-islington/cpython/commit/a6724dd561f2f629e3b3d709024e33bd640e4bc7
before calling `_PyGen_Se…https://github.com/miss-islington/cpython/commit/a6724dd561f2f629e3b3d709024e33bd640e4bc7
a6724ddhttps://github.com/miss-islington/cpython/commit/a6724dd561f2f629e3b3d709024e33bd640e4bc7
pythonGH-128780https://github.com/python/cpython/pull/128780
76ffaefhttps://github.com/miss-islington/cpython/commit/76ffaef729c91bb79da6df2ade48f3ec51118300
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jan 13, 2025https://github.com/python/cpython/pull/128780#issuecomment-2587034021
GH-128784https://github.com/python/cpython/pull/128784
3.12 branchhttps://github.com/python/cpython/tree/3.12
Please reload this pagehttps://github.com/python/cpython/pull/128780
miss-islingtonhttps://github.com/miss-islington
Jan 13, 2025 https://github.com/python/cpython/pull/128780#ref-commit-cfdefc9
https://github.com/picnixz
https://github.com/kumaraditya303
https://github.com/miss-islington
pythongh-128078https://github.com/python/cpython/issues/128078
: Clear exception inhttps://github.com/miss-islington/cpython/commit/cfdefc9d91f25cd468f89d6185baee8f7186ac65
anexthttps://github.com/miss-islington/cpython/commit/cfdefc9d91f25cd468f89d6185baee8f7186ac65
before calling `_PyGen_Se…https://github.com/miss-islington/cpython/commit/cfdefc9d91f25cd468f89d6185baee8f7186ac65
cfdefc9https://github.com/miss-islington/cpython/commit/cfdefc9d91f25cd468f89d6185baee8f7186ac65
pythonGH-128780https://github.com/python/cpython/pull/128780
76ffaefhttps://github.com/miss-islington/cpython/commit/76ffaef729c91bb79da6df2ade48f3ec51118300
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
Jan 13, 2025https://github.com/python/cpython/pull/128780#event-15904534742
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jan 13, 2025https://github.com/python/cpython/pull/128780#issuecomment-2587034181
GH-128785https://github.com/python/cpython/pull/128785
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/128780
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Jan 13, 2025https://github.com/python/cpython/pull/128780#event-15904535698
kumaraditya303https://github.com/kumaraditya303
Jan 13, 2025 https://github.com/python/cpython/pull/128780#ref-commit-4facd7d
https://github.com/miss-islington
https://github.com/picnixz
https://github.com/kumaraditya303
[3.12]https://github.com/python/cpython/commit/4facd7d119a63bcd598260e06977d6b792592b88
gh-128078https://github.com/python/cpython/issues/128078
: Clear exception inhttps://github.com/python/cpython/commit/4facd7d119a63bcd598260e06977d6b792592b88
anexthttps://github.com/python/cpython/commit/4facd7d119a63bcd598260e06977d6b792592b88
before calling `_PyGen_S…https://github.com/python/cpython/commit/4facd7d119a63bcd598260e06977d6b792592b88
4facd7dhttps://github.com/python/cpython/commit/4facd7d119a63bcd598260e06977d6b792592b88
GH-128780https://github.com/python/cpython/pull/128780
#128784https://github.com/python/cpython/pull/128784
gh-128078https://github.com/python/cpython/issues/128078
GH-128780https://github.com/python/cpython/pull/128780
76ffaefhttps://github.com/python/cpython/commit/76ffaef729c91bb79da6df2ade48f3ec51118300
kumaraditya303https://github.com/kumaraditya303
Jan 13, 2025 https://github.com/python/cpython/pull/128780#ref-commit-66d0636
https://github.com/miss-islington
https://github.com/picnixz
https://github.com/kumaraditya303
[3.13]https://github.com/python/cpython/commit/66d06360252cd3dc26edfbe5d30c51aa7505524a
gh-128078https://github.com/python/cpython/issues/128078
: Clear exception inhttps://github.com/python/cpython/commit/66d06360252cd3dc26edfbe5d30c51aa7505524a
anexthttps://github.com/python/cpython/commit/66d06360252cd3dc26edfbe5d30c51aa7505524a
before calling `_PyGen_S…https://github.com/python/cpython/commit/66d06360252cd3dc26edfbe5d30c51aa7505524a
66d0636https://github.com/python/cpython/commit/66d06360252cd3dc26edfbe5d30c51aa7505524a
GH-128780https://github.com/python/cpython/pull/128780
#128785https://github.com/python/cpython/pull/128785
gh-128078https://github.com/python/cpython/issues/128078
GH-128780https://github.com/python/cpython/pull/128780
76ffaefhttps://github.com/python/cpython/commit/76ffaef729c91bb79da6df2ade48f3ec51118300
https://github.com/picnixz
picnixzhttps://github.com/picnixz
January 13, 2025 13:23https://github.com/python/cpython/pull/128780#event-15904892786
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Jan 13, 2025 https://github.com/python/cpython/pull/128780#ref-pullrequest-2760847204
gh-128078: Simplify logic in _PyGen_SetStopIterationValue (follow-up to gh-128780) #128287 https://github.com/python/cpython/pull/128287
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F128780
https://github.com/kumaraditya303
kumaraditya303 https://github.com/kumaraditya303
https://github.com/python/cpython/pull/128780/files/933324363a12bcdce6f58f2e5dc8b22ad7ea8bf3
https://github.com/markshannon
markshannon https://github.com/markshannon
Please reload this pagehttps://github.com/python/cpython/pull/128780
Please reload this pagehttps://github.com/python/cpython/pull/128780
https://github.com/picnixz
https://github.com/kumaraditya303
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.