René's URL Explorer Experiment


Title: gh-110378: Close invalid generators in contextmanager and asynccontextmanager by serhiy-storchaka · Pull Request #110499 · python/cpython · GitHub

Open Graph Title: gh-110378: Close invalid generators in contextmanager and asynccontextmanager by serhiy-storchaka · Pull Request #110499 · python/cpython

X Title: gh-110378: Close invalid generators in contextmanager and asynccontextmanager by serhiy-storchaka · Pull Request #110499 · python/cpython

Description: contextmanager and asynccontextmanager context managers now close an invalid underlying generator object that yields more then one value. Issue: test_contextlib_async produces several RuntimeWarn...

Open Graph Description: contextmanager and asynccontextmanager context managers now close an invalid underlying generator object that yields more then one value. Issue: test_contextlib_async produces several RuntimeWarn...

X Description: contextmanager and asynccontextmanager context managers now close an invalid underlying generator object that yields more then one value. Issue: test_contextlib_async produces several RuntimeWarn...

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

X: @github

direct link

Domain: github.com

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:72610295-2f94-d7dc-864e-bb5bca607d65
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD7FE:1D81B0:1E34BF:294CD0:696A702B
html-safe-nonce173fe8386d3dd6e4050137f54c18448b30feddf06411b0a18fc4dbf0aa6424b1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0ZFOjFEODFCMDoxRTM0QkY6Mjk0Q0QwOjY5NkE3MDJCIiwidmlzaXRvcl9pZCI6IjM1NzM0NDI2MTE5OTg1MTkzMzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3421356f047a0a2cffb2aa96f6b65cd8cfffa690b4f47173ef24f0adf687812b
hovercard-subject-tagpull_request:1546330427
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/110499/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/537a20688d7e2019c3d933b40d2d58fee761bba6b8841ce10dc25ad05b504c0f/python/cpython/pull/110499
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/537a20688d7e2019c3d933b40d2d58fee761bba6b8841ce10dc25ad05b504c0f/python/cpython/pull/110499
og:image:altcontextmanager and asynccontextmanager context managers now close an invalid underlying generator object that yields more then one value. Issue: test_contextlib_async produces several RuntimeWarn...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameserhiy-storchaka
hostnamegithub.com
expected-hostnamegithub.com
Nonecfa223d62d272274e0b68350b4bd7741f3ca7498b8c4b8b1bc1e6deabbdbc09d
turbo-cache-controlno-preview
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
release6a0b6893c221f98f607598e939299fdf5763435d
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/110499#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F110499
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F110499
Sign up https://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/110499
Reloadhttps://github.com/python/cpython/pull/110499
Reloadhttps://github.com/python/cpython/pull/110499
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/110499
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/110499
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/110499#issue-comment-box
ambvhttps://github.com/ambv
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:test_contextmanager_trap_second_yieldhttps://github.com/serhiy-storchaka/cpython/tree/test_contextmanager_trap_second_yield
gh-110378: Close invalid generators in contextmanager and asynccontextmanager https://github.com/python/cpython/pull/110499#top
ambvhttps://github.com/ambv
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:test_contextmanager_trap_second_yieldhttps://github.com/serhiy-storchaka/cpython/tree/test_contextmanager_trap_second_yield
Conversation 3 https://github.com/python/cpython/pull/110499
Commits 1 https://github.com/python/cpython/pull/110499/commits
Checks 0 https://github.com/python/cpython/pull/110499/checks
Files changed https://github.com/python/cpython/pull/110499/files
Please reload this pagehttps://github.com/python/cpython/pull/110499
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Oct 7, 2023https://github.com/python/cpython/pull/110499#issue-1931304091
Please reload this pagehttps://github.com/python/cpython/pull/110499
test_contextlib_async produces several RuntimeWarnings #110378https://github.com/python/cpython/issues/110378
Please reload this pagehttps://github.com/python/cpython/pull/110499
https://github.com/serhiy-storchaka
pythongh-110378https://github.com/python/cpython/issues/110378
: Close invalid generators in contextmanager and async…https://github.com/python/cpython/pull/110499/commits/347881e161d4c22d55103b08f1b6a5afafbfc21a
347881ehttps://github.com/python/cpython/pull/110499/commits/347881e161d4c22d55103b08f1b6a5afafbfc21a
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
needs backport to 3.11 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.11%22
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
Oct 7, 2023https://github.com/python/cpython/pull/110499#event-10581744469
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
1st1https://github.com/1st1
code ownerhttps://github.com/python/cpython/blob/92ca90b7629c070ebc3b08e6f03db0bb552634e3/.github/CODEOWNERS#L21
October 7, 2023 10:55https://github.com/python/cpython/pull/110499#event-10581744501
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Oct 7, 2023https://github.com/python/cpython/pull/110499#event-10581744568
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 7, 2023 https://github.com/python/cpython/pull/110499#ref-issue-1927643103
test_contextlib_async produces several RuntimeWarnings #110378 https://github.com/python/cpython/issues/110378
https://github.com/ambv
ambvhttps://github.com/ambv
Oct 9, 2023 https://github.com/python/cpython/pull/110499#pullrequestreview-1664584445
View reviewed changes https://github.com/python/cpython/pull/110499/files/347881e161d4c22d55103b08f1b6a5afafbfc21a
Lib/contextlib.pyhttps://github.com/python/cpython/pull/110499/files/347881e161d4c22d55103b08f1b6a5afafbfc21a#diff-e00601a380ba6c916ba4333277fe6ea43d2477804002ab1ae64480f80fec8e3a
ambvhttps://github.com/ambv
Oct 9, 2023https://github.com/python/cpython/pull/110499#discussion_r1350383494
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/110499
https://github.com/ambv
ambvhttps://github.com/ambv
96fed66https://github.com/python/cpython/commit/96fed66a65097eac2dc528ce29c9ba676bb07689
Oct 10, 2023https://github.com/python/cpython/pull/110499#event-10600305840
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Oct 10, 2023https://github.com/python/cpython/pull/110499#issuecomment-1754598885
@serhiy-storchakahttps://github.com/serhiy-storchaka
@ambvhttps://github.com/ambv
Please reload this pagehttps://github.com/python/cpython/pull/110499
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Oct 10, 2023https://github.com/python/cpython/pull/110499#event-10600306432
miss-islingtonhttps://github.com/miss-islington
Oct 10, 2023 https://github.com/python/cpython/pull/110499#ref-commit-f967a63
https://github.com/serhiy-storchaka
https://github.com/miss-islington
pythongh-110378https://github.com/python/cpython/issues/110378
: Close invalid generators in contextmanager and async…https://github.com/miss-islington/cpython/commit/f967a633732ddc765784bd62b66562fa580c3344
f967a63https://github.com/miss-islington/cpython/commit/f967a633732ddc765784bd62b66562fa580c3344
pythonGH-110499https://github.com/python/cpython/pull/110499
96fed66https://github.com/miss-islington/cpython/commit/96fed66a65097eac2dc528ce29c9ba676bb07689
miss-islingtonhttps://github.com/miss-islington
Oct 10, 2023 https://github.com/python/cpython/pull/110499#ref-commit-ad7dcbb
https://github.com/serhiy-storchaka
https://github.com/miss-islington
pythongh-110378https://github.com/python/cpython/issues/110378
: Close invalid generators in contextmanager and async…https://github.com/miss-islington/cpython/commit/ad7dcbb48c32bdebfcb02c1e940cb7532ee6a6d2
ad7dcbbhttps://github.com/miss-islington/cpython/commit/ad7dcbb48c32bdebfcb02c1e940cb7532ee6a6d2
pythonGH-110499https://github.com/python/cpython/pull/110499
96fed66https://github.com/miss-islington/cpython/commit/96fed66a65097eac2dc528ce29c9ba676bb07689
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 10, 2023https://github.com/python/cpython/pull/110499#issuecomment-1754599336
GH-110588https://github.com/python/cpython/pull/110588
3.12 branchhttps://github.com/python/cpython/tree/3.12
Please reload this pagehttps://github.com/python/cpython/pull/110499
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
Oct 10, 2023https://github.com/python/cpython/pull/110499#event-10600310275
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 10, 2023https://github.com/python/cpython/pull/110499#issuecomment-1754599417
GH-110589https://github.com/python/cpython/pull/110589
3.11 branchhttps://github.com/python/cpython/tree/3.11
Please reload this pagehttps://github.com/python/cpython/pull/110499
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.11 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.11%22
Oct 10, 2023https://github.com/python/cpython/pull/110499#event-10600311025
ambvhttps://github.com/ambv
Oct 10, 2023 https://github.com/python/cpython/pull/110499#ref-commit-2fc8081
https://github.com/miss-islington
https://github.com/serhiy-storchaka
[3.12]https://github.com/python/cpython/commit/2fc80814bf55445fb2cc56b25ec54d8e308e3408
gh-110378https://github.com/python/cpython/issues/110378
: Close invalid generators in contextmanager and asyn…https://github.com/python/cpython/commit/2fc80814bf55445fb2cc56b25ec54d8e308e3408
2fc8081https://github.com/python/cpython/commit/2fc80814bf55445fb2cc56b25ec54d8e308e3408
GH-110499https://github.com/python/cpython/pull/110499
#110588https://github.com/python/cpython/pull/110588
96fed66https://github.com/python/cpython/commit/96fed66a65097eac2dc528ce29c9ba676bb07689
ambvhttps://github.com/ambv
Oct 10, 2023 https://github.com/python/cpython/pull/110499#ref-commit-2b3a418
https://github.com/miss-islington
https://github.com/serhiy-storchaka
https://github.com/ambv
[3.11]https://github.com/python/cpython/commit/2b3a4182798bc95a426e55d1f9f7199e2f2b5662
gh-110378https://github.com/python/cpython/issues/110378
: Close invalid generators in contextmanager and asyn…https://github.com/python/cpython/commit/2b3a4182798bc95a426e55d1f9f7199e2f2b5662
2b3a418https://github.com/python/cpython/commit/2b3a4182798bc95a426e55d1f9f7199e2f2b5662
GH-110499https://github.com/python/cpython/pull/110499
#110589https://github.com/python/cpython/pull/110589
96fed66https://github.com/python/cpython/commit/96fed66a65097eac2dc528ce29c9ba676bb07689
Glyphackhttps://github.com/Glyphack
Sep 2, 2024 https://github.com/python/cpython/pull/110499#ref-commit-35093ba
https://github.com/serhiy-storchaka
https://github.com/Glyphack
pythongh-110378https://github.com/python/cpython/issues/110378
: Close invalid generators in contextmanager and async…https://github.com/Glyphack/cpython/commit/35093ba2474fbc25cc3dc0193e117182459afd91
35093bahttps://github.com/Glyphack/cpython/commit/35093ba2474fbc25cc3dc0193e117182459afd91
pythonGH-110499https://github.com/python/cpython/pull/110499
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%2F110499
https://github.com/ambv
ambv https://github.com/ambv
https://github.com/python/cpython/pull/110499/files/347881e161d4c22d55103b08f1b6a5afafbfc21a
https://github.com/1st1
1st1 https://github.com/1st1
Please reload this pagehttps://github.com/python/cpython/pull/110499
https://github.com/serhiy-storchaka
https://github.com/miss-islington
https://github.com/ambv
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

Viewport: width=device-width


URLs of crawlers that visited me.