| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:e6c1e2da-5886-6914-d84b-4a9011237a2c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E2CE:23DB5F:12757AA:172B758:6B024AAE |
| html-safe-nonce | 9fae1b917790cc4c55aa94ea9260ccfe38aa3cf1f2b47c0a9f8ce8cc780c8309 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkNFOjIzREI1RjoxMjc1N0FBOjE3MkI3NTg6NkIwMjRBQUUiLCJ2aXNpdG9yX2lkIjoiMzk0MzQ1NTUwNDg2NDUyOTA3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e7c4bf9df8c601531b5453893fd1494d912894e192ae3cce2448dd34e048c44e |
| hovercard-subject-tag | pull_request:1920711916 |
| 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 | ///pull_requests/show/commits |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/120503/commits |
| twitter:image | https://opengraph.githubassets.com/d017407cb855f8ebe6cd9217bad1926890d8800625abff1c1fc9b5a21c1c6f2c/python/cpython/pull/120503 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d017407cb855f8ebe6cd9217bad1926890d8800625abff1c1fc9b5a21c1c6f2c/python/cpython/pull/120503 |
| og:image:alt | Purpose
Currently consuming items from a queue is very complex. You need to
use an infinite while loop
check for a sentinel
call q.task_done() after processing each item
join the queue
cancel all ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nineteendo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-cache |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/python/cpython/pull/120503/commits#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F120503%2Fcommits |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F120503%2Fcommits |
| 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%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/120503/commits |
| Reload | https://github.com/python/cpython/pull/120503/commits |
| Reload | https://github.com/python/cpython/pull/120503/commits |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| https://github.com/python/cpython |
| nineteendo | https://github.com/nineteendo |
| python:main | https://github.com/python/cpython/tree/main |
| nineteendo:add-Queue.__iter__ | https://github.com/nineteendo/cpython/tree/add-Queue.__iter__ |
| Conversation | https://github.com/python/cpython/pull/120503 |
| Commits27 (27) | https://github.com/python/cpython/pull/120503/commits |
| Checks | https://github.com/python/cpython/pull/120503/checks |
| Files changed | https://github.com/python/cpython/pull/120503/files |
| gh-119154: Simplify consumers by making queue.Queue an iterable | https://github.com/python/cpython/pull/120503/commits#top |
| nineteendo | https://github.com/nineteendo |
| python:main | https://github.com/python/cpython/tree/main |
| nineteendo:add-Queue.__iter__ | https://github.com/nineteendo/cpython/tree/add-Queue.__iter__ |
| Add `queue.Queue.__iter__()` | https://github.com/python/cpython/pull/120503/commits/e826a01248a840f05182c97536f85e089ec584cf |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| e826a01 | https://github.com/python/cpython/pull/120503/commits/e826a01248a840f05182c97536f85e089ec584cf |
| https://github.com/python/cpython/tree/e826a01248a840f05182c97536f85e089ec584cf |
| Add `asyncio.Queue.__iter__()` | https://github.com/python/cpython/pull/120503/commits/c8cbe4d0b1a48d31bfaa2dba3f3874c679a02dbe |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| c8cbe4d | https://github.com/python/cpython/pull/120503/commits/c8cbe4d0b1a48d31bfaa2dba3f3874c679a02dbe |
| https://github.com/python/cpython/tree/c8cbe4d0b1a48d31bfaa2dba3f3874c679a02dbe |
| 📜🤖 Added by blurb_it. | https://github.com/python/cpython/pull/120503/commits/940e3c0ee41835d62771bfaf00dfc3168ea1206c |
| https://github.com/apps/blurb-it |
| blurb-it[bot] | https://github.com/python/cpython/commits?author=blurb-it%5Bbot%5D |
| 940e3c0 | https://github.com/python/cpython/pull/120503/commits/940e3c0ee41835d62771bfaf00dfc3168ea1206c |
| https://github.com/python/cpython/tree/940e3c0ee41835d62771bfaf00dfc3168ea1206c |
| Fix lint | https://github.com/python/cpython/pull/120503/commits/8fca2888da1ae26bf442723b922617be76b2f1e2 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 8fca288 | https://github.com/python/cpython/pull/120503/commits/8fca2888da1ae26bf442723b922617be76b2f1e2 |
| https://github.com/python/cpython/tree/8fca2888da1ae26bf442723b922617be76b2f1e2 |
| Wait | https://github.com/python/cpython/pull/120503/commits/499457c1993c69f6cf7ff33ac94dcf082fc6b039 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 499457c | https://github.com/python/cpython/pull/120503/commits/499457c1993c69f6cf7ff33ac94dcf082fc6b039 |
| https://github.com/python/cpython/tree/499457c1993c69f6cf7ff33ac94dcf082fc6b039 |
| Update 2024-06-14-13-37-45.gh-issue-120499.JK7Mv8.rst | https://github.com/python/cpython/pull/120503/commits/7f206d98a7928a4531a84082d5874e8b6296d0f6 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 7f206d9 | https://github.com/python/cpython/pull/120503/commits/7f206d98a7928a4531a84082d5874e8b6296d0f6 |
| https://github.com/python/cpython/tree/7f206d98a7928a4531a84082d5874e8b6296d0f6 |
| Move while loop inside try/except block | https://github.com/python/cpython/pull/120503/commits/3cad1810cbe41fd88c1e8ce5244d152b5156e028 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 3cad181 | https://github.com/python/cpython/pull/120503/commits/3cad1810cbe41fd88c1e8ce5244d152b5156e028 |
| https://github.com/python/cpython/tree/3cad1810cbe41fd88c1e8ce5244d152b5156e028 |
| test iteration | https://github.com/python/cpython/pull/120503/commits/cc9f7ef91dd4d89165ba8410a6ad144e222915b2 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| cc9f7ef | https://github.com/python/cpython/pull/120503/commits/cc9f7ef91dd4d89165ba8410a6ad144e222915b2 |
| https://github.com/python/cpython/tree/cc9f7ef91dd4d89165ba8410a6ad144e222915b2 |
| Reduce diff | https://github.com/python/cpython/pull/120503/commits/92d7dc025519c526caa92c4bf8a851db5ffcd884 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 92d7dc0 | https://github.com/python/cpython/pull/120503/commits/92d7dc025519c526caa92c4bf8a851db5ffcd884 |
| https://github.com/python/cpython/tree/92d7dc025519c526caa92c4bf8a851db5ffcd884 |
| Run test | https://github.com/python/cpython/pull/120503/commits/a92e0318f86d017b831aabf58def4b1feb3fd861 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| a92e031 | https://github.com/python/cpython/pull/120503/commits/a92e0318f86d017b831aabf58def4b1feb3fd861 |
| https://github.com/python/cpython/tree/a92e0318f86d017b831aabf58def4b1feb3fd861 |
| Reduce diff | https://github.com/python/cpython/pull/120503/commits/3621cc169d06928f11870944d72089dceb533638 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 3621cc1 | https://github.com/python/cpython/pull/120503/commits/3621cc169d06928f11870944d72089dceb533638 |
| https://github.com/python/cpython/tree/3621cc169d06928f11870944d72089dceb533638 |
| Adapt example from asyncio | https://github.com/python/cpython/pull/120503/commits/98252c6e925d85fc988cd19b51621d3d478b0970 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 98252c6 | https://github.com/python/cpython/pull/120503/commits/98252c6e925d85fc988cd19b51621d3d478b0970 |
| https://github.com/python/cpython/tree/98252c6e925d85fc988cd19b51621d3d478b0970 |
| Simpler example | https://github.com/python/cpython/pull/120503/commits/4b1ff4ba47578fdb68e91b6a05325a00ddbd78c3 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 4b1ff4b | https://github.com/python/cpython/pull/120503/commits/4b1ff4ba47578fdb68e91b6a05325a00ddbd78c3 |
| https://github.com/python/cpython/tree/4b1ff4ba47578fdb68e91b6a05325a00ddbd78c3 |
| Put definition first | https://github.com/python/cpython/pull/120503/commits/5e9f48b76d5d652447761601833b5ad61ed61760 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 5e9f48b | https://github.com/python/cpython/pull/120503/commits/5e9f48b76d5d652447761601833b5ad61ed61760 |
| https://github.com/python/cpython/tree/5e9f48b76d5d652447761601833b5ad61ed61760 |
| Print worker name | https://github.com/python/cpython/pull/120503/commits/4b382ec300702fe85a60f49ab5e78e98df8bd360 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 4b382ec | https://github.com/python/cpython/pull/120503/commits/4b382ec300702fe85a60f49ab5e78e98df8bd360 |
| https://github.com/python/cpython/tree/4b382ec300702fe85a60f49ab5e78e98df8bd360 |
| Restore example | https://github.com/python/cpython/pull/120503/commits/076a7a617f5c62d558f364453003a95e51c05bf5 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 076a7a6 | https://github.com/python/cpython/pull/120503/commits/076a7a617f5c62d558f364453003a95e51c05bf5 |
| https://github.com/python/cpython/tree/076a7a617f5c62d558f364453003a95e51c05bf5 |
| Indent example | https://github.com/python/cpython/pull/120503/commits/6132f5a854eb3caa771f6fc66aa1d0f9262fd59b |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 6132f5a | https://github.com/python/cpython/pull/120503/commits/6132f5a854eb3caa771f6fc66aa1d0f9262fd59b |
| https://github.com/python/cpython/tree/6132f5a854eb3caa771f6fc66aa1d0f9262fd59b |
| Cleanup tests | https://github.com/python/cpython/pull/120503/commits/9a28bc508f5afb28946c40b7581ff3c54afc9102 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 9a28bc5 | https://github.com/python/cpython/pull/120503/commits/9a28bc508f5afb28946c40b7581ff3c54afc9102 |
| https://github.com/python/cpython/tree/9a28bc508f5afb28946c40b7581ff3c54afc9102 |
| Instantiate | https://github.com/python/cpython/pull/120503/commits/0a69fd9752bc02aa11ac6a65b6cd8a22cd486b1c |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 0a69fd9 | https://github.com/python/cpython/pull/120503/commits/0a69fd9752bc02aa11ac6a65b6cd8a22cd486b1c |
| https://github.com/python/cpython/tree/0a69fd9752bc02aa11ac6a65b6cd8a22cd486b1c |
| Move inside with block | https://github.com/python/cpython/pull/120503/commits/4407eedd34f008d08b64377594a24f1d871422bc |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 4407eed | https://github.com/python/cpython/pull/120503/commits/4407eedd34f008d08b64377594a24f1d871422bc |
| https://github.com/python/cpython/tree/4407eedd34f008d08b64377594a24f1d871422bc |
| Add comment | https://github.com/python/cpython/pull/120503/commits/1e500abcd7aa2e4c2636d67846c4550eba75fd6a |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 1e500ab | https://github.com/python/cpython/pull/120503/commits/1e500abcd7aa2e4c2636d67846c4550eba75fd6a |
| https://github.com/python/cpython/tree/1e500abcd7aa2e4c2636d67846c4550eba75fd6a |
| Separate function definition | https://github.com/python/cpython/pull/120503/commits/101409f316e6fd93ccfa139336eaa0a0857b6ef8 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 101409f | https://github.com/python/cpython/pull/120503/commits/101409f316e6fd93ccfa139336eaa0a0857b6ef8 |
| https://github.com/python/cpython/tree/101409f316e6fd93ccfa139336eaa0a0857b6ef8 |
| Update whatsnew | https://github.com/python/cpython/pull/120503/commits/bcdb21ff04df988175b9d4edc53ae22c2a00d4c3 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| bcdb21f | https://github.com/python/cpython/pull/120503/commits/bcdb21ff04df988175b9d4edc53ae22c2a00d4c3 |
| https://github.com/python/cpython/tree/bcdb21ff04df988175b9d4edc53ae22c2a00d4c3 |
| Update blurb | https://github.com/python/cpython/pull/120503/commits/0743257f2dba19d6b163124361da3ff9f0a1ac52 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 0743257 | https://github.com/python/cpython/pull/120503/commits/0743257f2dba19d6b163124361da3ff9f0a1ac52 |
| https://github.com/python/cpython/tree/0743257f2dba19d6b163124361da3ff9f0a1ac52 |
| Rename 2024-06-14-13-37-45.gh-issue-120499.JK7Mv8.rst to 2024-06-14-13-37-45.gh-issue-120499.JK7Mv8.rst | https://github.com/python/cpython/pull/120503/commits/5e37cd5ea45504c870e192e77312bf3b17c446d9 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 5e37cd5 | https://github.com/python/cpython/pull/120503/commits/5e37cd5ea45504c870e192e77312bf3b17c446d9 |
| https://github.com/python/cpython/tree/5e37cd5ea45504c870e192e77312bf3b17c446d9 |
| Merge branch 'main' into add-Queue.__iter__ | https://github.com/python/cpython/pull/120503/commits/1f058690c5c5d45acc6c55d1127a5ae78719778b |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| 1f05869 | https://github.com/python/cpython/pull/120503/commits/1f058690c5c5d45acc6c55d1127a5ae78719778b |
| https://github.com/python/cpython/tree/1f058690c5c5d45acc6c55d1127a5ae78719778b |
| Clarify documentation | https://github.com/python/cpython/pull/120503/commits/b23a1b326791edd0b4310867c12bce008e7b2656 |
| https://github.com/nineteendo |
| nineteendo | https://github.com/python/cpython/commits?author=nineteendo |
| b23a1b3 | https://github.com/python/cpython/pull/120503/commits/b23a1b326791edd0b4310867c12bce008e7b2656 |
| https://github.com/python/cpython/tree/b23a1b326791edd0b4310867c12bce008e7b2656 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |