René's URL Explorer Experiment


Title: gh-119154: Simplify consumers by adding `*.Queue.iter()` and `*.Queue.iter_nowait()` by nineteendo · Pull Request #120925 · python/cpython · GitHub

Open Graph Title: gh-119154: Simplify consumers by adding `*.Queue.iter()` and `*.Queue.iter_nowait()` by nineteendo · Pull Request #120925 · python/cpython

X Title: gh-119154: Simplify consumers by adding `*.Queue.iter()` and `*.Queue.iter_nowait()` by nineteendo · Pull Request #120925 · python/cpython

Description: Purpose Currently consuming items from a queue can be a bit more complex than necessary. You need to use an infinite while loop check for a sentinel or add all worker tasks to a list call q.task_done() after processing each item join the queue cancel all worker tasks wait until all worker tasks are cancelled By adding *.Queue.iter() and *.Queue.iter_nowait(), this becomes a bit easier, you only need to call queue.shutdown(). Overview of changes asyncio Calling queue.Queue.iter() returns an asynchronous generator which iterates over the queue of items Calling queue.Queue.iter_nowait() returns a generator which iterates over the queue of items without blocking. A private _AsyncQueueIterator has been added to handle the asynchronous iteration The example in the documentation is greatly simplified by the new addition queue.py Calling queue.Queue.iter() returns a generator which iterates over the queue of items Calling queue.Queue.iter_nowait() returns a generator which iterates over the queue of items without blocking. An example has been added in the documentation which is a bit simpler than working with daemon threads Examples asyncio Without iteration import asyncio async def producer(queue): for i in range(5): print(f'{i} -> queue') await queue.put(i) await asyncio.sleep(.1) async def consumer(queue): while True: i = await queue.get() print(f'queue -> {i}') await asyncio.sleep(.3) queue.task_done() async def main(): queue = asyncio.Queue() tasks = [] for _ in range(1): task = asyncio.create_task(consumer(queue)) tasks.append(task) async with asyncio.TaskGroup() as tg: tg.create_task(producer(queue)) print('produced everything') await queue.join() for task in tasks: task.cancel() await asyncio.gather(*tasks, return_exceptions=True) print('consumed everything') asyncio.run(main()) With iteration import asyncio async def producer(queue): for i in range(5): print(f'{i} -> queue') await queue.put(i) await asyncio.sleep(.1) async def consumer(queue): async for i in queue.iter(): print(f'queue -> {i}') await asyncio.sleep(.3) async def main(): queue = asyncio.Queue() async with asyncio.TaskGroup() as tg1: tg1.create_task(consumer(queue)) async with asyncio.TaskGroup() as tg2: tg2.create_task(producer(queue)) queue.shutdown() print('produced everything') print('consumed everything') asyncio.run(main()) Output 0 -> queue queue -> 0 1 -> queue 2 -> queue queue -> 1 3 -> queue 4 -> queue produced everything queue -> 2 queue -> 3 queue -> 4 consumed everything queue as final step Without iteration import threading import queue def worker(q): while True: item = q.get() print(f'queue -> {item}') q.task_done() q = queue.Queue() threading.Thread(target=worker, args=(q,) daemon=True).start() for item in range(5): q.put(item) print(f'{item} -> queue') print('produced everything') q.join() print('consumed everything') # Worker is still running With iteration import concurrent.futures import queue def worker(q): for item in q.iter(): print(f'queue -> {item}') q = queue.Queue() with concurrent.futures.ThreadPoolExecutor() as tp: tp.submit(worker, q) for item in range(5): q.put(item) print(f'{item} -> queue') q.shutdown() print('produced everything') print('consumed everything') # No worker is running Output 0 -> queue queue -> 0 1 -> queue queue -> 1 queue -> 2 2 -> queue 3 -> queue 4 -> queue produced everything queue -> 3 queue -> 4 consumed everything queue not as final step Without iteration import concurrent.futures import queue import time def producer(q): for i in range(5): print(f'{i} -> queue') q.put(i) time.sleep(.1) def consumer(q): while True: i = q.get() if i is None: break print(f'queue -> {i}') time.sleep(.3) q.task_done() q = queue.Queue() with concurrent.futures.ThreadPoolExecutor() as tp1: tp1.submit(consumer, q) with concurrent.futures.ThreadPoolExecutor() as tp2: tp2.submit(producer, q) print('produced everything') q.join() q.put(None) print('consumed everything') With iteration import concurrent.futures import queue import time def producer(q): for i in range(5): print(f'{i} -> queue') q.put(i) time.sleep(.1) def consumer(q): for i in q.iter(): print(f'queue -> {i}') time.sleep(.3) q = queue.Queue() with concurrent.futures.ThreadPoolExecutor() as tp1: tp1.submit(consumer, q) with concurrent.futures.ThreadPoolExecutor() as tp2: tp2.submit(producer, q) q.shutdown() print('produced everything') print('consumed everything') Output 0 -> queue queue -> 0 1 -> queue 2 -> queue queue -> 1 3 -> queue 4 -> queue produced everything queue -> 2 queue -> 3 queue -> 4 consumed everything Issue: gh-119154 📚 Documentation preview 📚: library/queue.html library/asyncio-queue.html

Open Graph Description: Purpose Currently consuming items from a queue can be a bit more complex than necessary. You need to use an infinite while loop check for a sentinel or add all worker tasks to a list call q.task_d...

X Description: Purpose Currently consuming items from a queue can be a bit more complex than necessary. You need to use an infinite while loop check for a sentinel or add all worker tasks to a list call q.task_d...

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

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:147be17e-0717-b537-cf08-a5d558a19a7e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAE98:29FFA9:4A3B62A:5DBE546:6B024AA5
html-safe-nonce9e4fcb96974e074cc10f36f9440db87ce9818fcc4ee4e3e929a7fa2954c17f43
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTk4OjI5RkZBOTo0QTNCNjJBOjVEQkU1NDY6NkIwMjRBQTUiLCJ2aXNpdG9yX2lkIjoiNjU0Mzg3ODg3OTExNzk4NjQ2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd0da6b847851885e6d4bf10612ab6bc23fa9406732309a711d5e04c0282238db
hovercard-subject-tagpull_request:1934304157
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/120925/files
twitter:imagehttps://avatars.githubusercontent.com/u/65588599?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/65588599?s=400&v=4
og:image:altPurpose Currently consuming items from a queue can be a bit more complex than necessary. You need to use an infinite while loop check for a sentinel or add all worker tasks to a list call q.task_d...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/120925/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F120925%2Ffiles
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%2F120925%2Ffiles
Sign uphttps://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%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/120925/files
Reloadhttps://github.com/python/cpython/pull/120925/files
Reloadhttps://github.com/python/cpython/pull/120925/files
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
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
nineteendohttps://github.com/nineteendo
python:mainhttps://github.com/python/cpython/tree/main
nineteendo:add-Queue.iterhttps://github.com/nineteendo/cpython/tree/add-Queue.iter
Conversation 9 https://github.com/python/cpython/pull/120925
Commits 90 https://github.com/python/cpython/pull/120925/commits
Checks 0 https://github.com/python/cpython/pull/120925/checks
Files changed https://github.com/python/cpython/pull/120925/files
Please reload this pagehttps://github.com/python/cpython/pull/120925/files
gh-119154: Simplify consumers by adding *.Queue.iter() and *.Queue.iter_nowait() https://github.com/python/cpython/pull/120925/files#top
Show all changes 90 commits https://github.com/python/cpython/pull/120925/files
e9c1a3e Add `asyncio.Queue.__aiter__()` nineteendo Jun 14, 2024 https://github.com/python/cpython/pull/120925/commits/e9c1a3e381f5d919d837eba9ade321719d679f18
3cd59ee Reduce diff nineteendo Jun 14, 2024 https://github.com/python/cpython/pull/120925/commits/3cd59ee95949448cef6e9adb68897c4788390ed5
16fc429 Add test nineteendo Jun 14, 2024 https://github.com/python/cpython/pull/120925/commits/16fc429f43738f546db8b94613c5b48f8e0c3cda
f13ddb3 Simplify code nineteendo Jun 14, 2024 https://github.com/python/cpython/pull/120925/commits/f13ddb3912e1e6efbf613f80ea7b51993a86f246
afd7ad4 Add to `__all__` nineteendo Jun 14, 2024 https://github.com/python/cpython/pull/120925/commits/afd7ad4a0ea2d3535946ba775d3fc2cb0cf04629
214548c 📜🤖 Added by blurb_it. blurb-it[bot] Jun 14, 2024 https://github.com/python/cpython/pull/120925/commits/214548c4b2a774b0fef2098ec59a51d7337fbccc
9824b63 Simplify example nineteendo Jun 14, 2024 https://github.com/python/cpython/pull/120925/commits/9824b639a8b001db0f3b94e2a2319dc32f2d5110
6358b8e Fix indentation nineteendo Jun 14, 2024 https://github.com/python/cpython/pull/120925/commits/6358b8ec6bc4b8665b3a47a8a48cfdfe2b8875c6
316b800 Improve order nineteendo Jun 14, 2024 https://github.com/python/cpython/pull/120925/commits/316b8006ef5c675a65758c660e00b700e654138a
92f3295 Test `StopAsyncIteration` nineteendo Jun 14, 2024 https://github.com/python/cpython/pull/120925/commits/92f32954db74d624f37306d427b6d710b588dc42
a18767d Document `AsyncQueueIterator` nineteendo Jun 14, 2024 https://github.com/python/cpython/pull/120925/commits/a18767df829a4f65fe921a3a043c44810f5dbbd2
e826a01 Add `queue.Queue.__iter__()` nineteendo Jun 14, 2024 https://github.com/python/cpython/pull/120925/commits/e826a01248a840f05182c97536f85e089ec584cf
c8cbe4d Add `asyncio.Queue.__iter__()` nineteendo Jun 14, 2024 https://github.com/python/cpython/pull/120925/commits/c8cbe4d0b1a48d31bfaa2dba3f3874c679a02dbe
940e3c0 📜🤖 Added by blurb_it. blurb-it[bot] Jun 14, 2024 https://github.com/python/cpython/pull/120925/commits/940e3c0ee41835d62771bfaf00dfc3168ea1206c
8fca288 Fix lint nineteendo Jun 14, 2024 https://github.com/python/cpython/pull/120925/commits/8fca2888da1ae26bf442723b922617be76b2f1e2
499457c Wait nineteendo Jun 14, 2024 https://github.com/python/cpython/pull/120925/commits/499457c1993c69f6cf7ff33ac94dcf082fc6b039
7f206d9 Update 2024-06-14-13-37-45.gh-issue-120499.JK7Mv8.rst nineteendo Jun 14, 2024 https://github.com/python/cpython/pull/120925/commits/7f206d98a7928a4531a84082d5874e8b6296d0f6
320691c Apply suggestions from code review nineteendo Jun 15, 2024 https://github.com/python/cpython/pull/120925/commits/320691cd422e5a3f0c323985d5db399a524badcf
f43bdb1 Unpack for loop nineteendo Jun 15, 2024 https://github.com/python/cpython/pull/120925/commits/f43bdb17235fee0bdf6680854d01affba49d0ac5
4ca4a93 Insert newline nineteendo Jun 15, 2024 https://github.com/python/cpython/pull/120925/commits/4ca4a93e18a239521da1a359bd8af6e9020a873c
fffacb2 Simplify example nineteendo Jun 15, 2024 https://github.com/python/cpython/pull/120925/commits/fffacb2cbfd5ca588bfa348068ca101edd628925
92d7b16 Indent correctly nineteendo Jun 15, 2024 https://github.com/python/cpython/pull/120925/commits/92d7b16d0f511b49e40a709a4144d2b416572db7
ce23fce Document `__aiter__()` nineteendo Jun 15, 2024 https://github.com/python/cpython/pull/120925/commits/ce23fcedf1bb3686ed85ab4f9b10e0337ca88409
640d2a8 Fix indent attempt 1 nineteendo Jun 15, 2024 https://github.com/python/cpython/pull/120925/commits/640d2a8a59f7385ccd806462cf2a255df032311f
3cad181 Move while loop inside try/except block nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/3cad1810cbe41fd88c1e8ce5244d152b5156e028
cc9f7ef test iteration nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/cc9f7ef91dd4d89165ba8410a6ad144e222915b2
92d7dc0 Reduce diff nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/92d7dc025519c526caa92c4bf8a851db5ffcd884
a92e031 Run test nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/a92e0318f86d017b831aabf58def4b1feb3fd861
3621cc1 Reduce diff nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/3621cc169d06928f11870944d72089dceb533638
98252c6 Adapt example from asyncio nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/98252c6e925d85fc988cd19b51621d3d478b0970
4b1ff4b Simpler example nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/4b1ff4ba47578fdb68e91b6a05325a00ddbd78c3
5e9f48b Put definition first nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/5e9f48b76d5d652447761601833b5ad61ed61760
4b382ec Print worker name nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/4b382ec300702fe85a60f49ab5e78e98df8bd360
076a7a6 Restore example nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/076a7a617f5c62d558f364453003a95e51c05bf5
6132f5a Indent example nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/6132f5a854eb3caa771f6fc66aa1d0f9262fd59b
6c9aa6d Make `AsyncQueueIterator` private nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/6c9aa6d6e7ec3668e3b12c4869ec7bac063e6c9d
9a28bc5 Cleanup tests nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/9a28bc508f5afb28946c40b7581ff3c54afc9102
0a69fd9 Instantiate nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/0a69fd9752bc02aa11ac6a65b6cd8a22cd486b1c
e6a5849 Use term nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/e6a5849ac8db0269c27e5d36717b1c339340491e
4407eed Move inside with block nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/4407eedd34f008d08b64377594a24f1d871422bc
1e500ab Add comment nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/1e500abcd7aa2e4c2636d67846c4550eba75fd6a
583f642 Re-order nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/583f642bb2d5044c863d77cdaf6c9568e372bb3d
1b6e781 Remove comment nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/1b6e78135503dfa4feafc83bf4f728d853286993
101409f Separate function definition nineteendo Jun 18, 2024 https://github.com/python/cpython/pull/120925/commits/101409f316e6fd93ccfa139336eaa0a0857b6ef8
2d5998a Update whatsnew nineteendo Jun 19, 2024 https://github.com/python/cpython/pull/120925/commits/2d5998ada601b06a84158b16ee0e4db56b72f477
841d50c Update blurb nineteendo Jun 19, 2024 https://github.com/python/cpython/pull/120925/commits/841d50c8dbfa49117f5d90fa4e0b0a67ffff7588
bcdb21f Update whatsnew nineteendo Jun 19, 2024 https://github.com/python/cpython/pull/120925/commits/bcdb21ff04df988175b9d4edc53ae22c2a00d4c3
0743257 Update blurb nineteendo Jun 19, 2024 https://github.com/python/cpython/pull/120925/commits/0743257f2dba19d6b163124361da3ff9f0a1ac52
d624bea Apply suggestions from code review nineteendo Jun 19, 2024 https://github.com/python/cpython/pull/120925/commits/d624beaa4925d99a30900df2ac7a705876c324a3
0a8a72b Update Doc/library/asyncio-queue.rst nineteendo Jun 19, 2024 https://github.com/python/cpython/pull/120925/commits/0a8a72b59b42abc67c8084053bf3e4cf2259bbb7
b3199df Rename 2024-06-14-10-30-43.gh-issue-119154.1MHWA-.rst to 2024-06-14-1… nineteendo Jun 19, 2024 https://github.com/python/cpython/pull/120925/commits/b3199dfad4fdc8d5ea6383e7d61145011a885ced
5e37cd5 Rename 2024-06-14-13-37-45.gh-issue-120499.JK7Mv8.rst to 2024-06-14-1… nineteendo Jun 19, 2024 https://github.com/python/cpython/pull/120925/commits/5e37cd5ea45504c870e192e77312bf3b17c446d9
d71eb91 Make queue a private attribute nineteendo Jun 19, 2024 https://github.com/python/cpython/pull/120925/commits/d71eb91e9474111af26dc8f3e4dce94ba1be8c31
1f05869 Merge branch 'main' into add-Queue.__iter__ nineteendo Jun 19, 2024 https://github.com/python/cpython/pull/120925/commits/1f058690c5c5d45acc6c55d1127a5ae78719778b
23e37f4 Clarify behaviour nineteendo Jun 20, 2024 https://github.com/python/cpython/pull/120925/commits/23e37f4e7b47779920ae8222f4554442ea669df2
3bb4e65 Fix grammar nineteendo Jun 20, 2024 https://github.com/python/cpython/pull/120925/commits/3bb4e6585c0b8a27d521cfbfce37d936a5176718
b23a1b3 Clarify documentation nineteendo Jun 21, 2024 https://github.com/python/cpython/pull/120925/commits/b23a1b326791edd0b4310867c12bce008e7b2656
b4e5c60 Delete Misc/NEWS.d/next/Library/2024-06-14-13-37-45.gh-issue-120499.J… nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/b4e5c602808216fec9a00f05b872d7eebbcba9ed
f6ba54e Update 3.14.rst nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/f6ba54eee63b67e4b659ff9fed4b7acf5846a8b2
a50f12f Explicit method nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/a50f12f90411b069ee5ae6c9f69f963b92934d9e
33af2a6 Re-order nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/33af2a6f4647d0dabc448f2bc087124d61827431
99db150 Revert calling `task_done()` nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/99db1509e2b40c2bf4bbbef78cf6de95c1cd993e
fd96d7d Add more tests nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/fd96d7db6a053961bb70c58f8567fb9bad8b3332
3fb6f88 Call `iter()` nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/3fb6f8854f7973cd023da756de3f91ac219ab3fc
d2bf0a1 Fix tests nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/d2bf0a13dc381ab1ca587a4dcd1830022618352c
e2f6ad8 Add paragraph about `shutdown()` nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/e2f6ad8f5a046acf51757d86d7eeca374e8c79e4
10188a3 Test blocking nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/10188a3ee6c360db6a0524d4fd8081943c6109f4
ef06383 Ensure queue is defined nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/ef063835fe74879c022b541e2c00d51daa2e9e11
ae06d69 Update whatsnew nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/ae06d694705f8f7b5530160eaf1e697af2f08a43
8613f61 📜🤖 Added by blurb_it. blurb-it[bot] Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/8613f61e3032d0ec9166fd28449a4b162a7a52a5
ba8b134 Explicit method nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/ba8b13416e9f089b27feffdf311c53165cbda4f7
5d6681a Fix lint nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/5d6681a231e8624bc90fb572e3497a3d72d37205
823389f Don't use multiple threads nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/823389f024af72cb11a596553dbd91be6716a0bb
a1c8ebb Don't use multiple threads nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/a1c8ebbe565e92e00ca2fda639eaf015e84c4e65
104423a Add docstrings nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/104423a06a9d582b4baf58b380af23cb9dca7367
d3e06d4 Revert newline nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/d3e06d4119008cd2bb9f8f7c3e28794efe44791c
f5aeeac Delete Misc/NEWS.d/next/Library/2024-06-14-10-30-43.gh-issue-119154.1… nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/f5aeeacb6c30cad9c9ca5945b0a755d4b573d19d
efc7d8e Remove redundant parentheses nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/efc7d8e500a1fa4cfe83b8cd9ebb92c8fa5a0788
fb98fa6 Update whatsnew nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/fb98fa68b6a9d10d756e72f484bde1e868245d6d
a56505d Fix typo nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/a56505dabbafd0a2eae6f55055f6f5a0a679c801
6f146f5 📜🤖 Added by blurb_it. blurb-it[bot] Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/6f146f5282d78118e7c4ad7b90b9755877454d53
0bbcfdd Update whatsnew nineteendo Jun 23, 2024 https://github.com/python/cpython/pull/120925/commits/0bbcfddc94101b0d412e94dcf5b1f4ce2961df22
81da0e6 Update 3.14.rst nineteendo Jun 24, 2024 https://github.com/python/cpython/pull/120925/commits/81da0e6a17cbe29de1fa3b32808e0d0e2ebfae86
461d1e1 Delete Misc/NEWS.d/next/Library/2024-06-23-20-31-59.gh-issue-120924.2… nineteendo Jun 24, 2024 https://github.com/python/cpython/pull/120925/commits/461d1e164e690e3dc8c1b842de94cda3db3435ed
48783bb Merge pull request #16 from nineteendo/add-asyncio.Queue.iter nineteendo Jun 24, 2024 https://github.com/python/cpython/pull/120925/commits/48783bb47f9f350becf628e95f5d299821bc9424
4d7e55b Update 2024-06-23-19-35-14.gh-issue-120924.7CXFaX.rst nineteendo Jun 24, 2024 https://github.com/python/cpython/pull/120925/commits/4d7e55ba5f41d1ee0c195938176f6a54d5377f8e
888ae9e Remove parentheses nineteendo Jun 24, 2024 https://github.com/python/cpython/pull/120925/commits/888ae9e51b975ee4f7b6c6c8021f875ba46adeda
a413d13 Link to github issue nineteendo Jun 24, 2024 https://github.com/python/cpython/pull/120925/commits/a413d1370b631b9ec955ab7b1ffe2786ad3d7d0e
dcdd17e Rename 2024-06-23-19-35-14.gh-issue-120924.7CXFaX.rst to 2024-06-23-1… nineteendo Jun 25, 2024 https://github.com/python/cpython/pull/120925/commits/dcdd17e2a33bfb9cefeada9dd016f827bb9567e8
525effe Update issue number nineteendo Jun 25, 2024 https://github.com/python/cpython/pull/120925/commits/525effeb30c0638b5a549c5cf504c67e4ba54dae
Clear filters https://github.com/python/cpython/pull/120925/files
Please reload this pagehttps://github.com/python/cpython/pull/120925/files
Please reload this pagehttps://github.com/python/cpython/pull/120925/files
asyncio-queue.rst https://github.com/python/cpython/pull/120925/files#diff-3b25acd4f063b2ccb930c10bc327d1abf97577b1d830afe084cf8e03f37de0e8
queue.rst https://github.com/python/cpython/pull/120925/files#diff-5f8aec8fa45976df3a34d74ef406e3c373a0e02a978dd5d8c8d824a6783eafef
3.14.rst https://github.com/python/cpython/pull/120925/files#diff-24e6cbe61d91e61059c44a7cf5f712499a11eb47a82d5f1a8db16ec7f9023c31
queues.py https://github.com/python/cpython/pull/120925/files#diff-22a6bcb03e783378149a3e9411c185b13c908e61886ffd55145634b7ab12caac
queue.py https://github.com/python/cpython/pull/120925/files#diff-aefad8744bccb805db2835af233fae516b8824a1e4d20b2545a640278c69620d
test_queues.py https://github.com/python/cpython/pull/120925/files#diff-e1e38d6442dc7d84b4eabf47d2080772baff9c6b94f997af273f7d8ff4a37d5d
test_queue.py https://github.com/python/cpython/pull/120925/files#diff-aa2555f5532a7deb4b049d0b1f6b45f79bdcc9e4479548d930c09b2720fe0181
2024-06-23-19-35-14.gh-issue-119154.7CXFaX.rst https://github.com/python/cpython/pull/120925/files#diff-3017cf4516dde34f5b772db98c666d8e94ffca5d3e77e1ad3208046adcbcf07b
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L374
Doc/library/asyncio-queue.rsthttps://github.com/python/cpython/pull/120925/files#diff-3b25acd4f063b2ccb930c10bc327d1abf97577b1d830afe084cf8e03f37de0e8
View file https://github.com/nineteendo/cpython/blob/525effeb30c0638b5a549c5cf504c67e4ba54dae/Doc/library/asyncio-queue.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/120925/{{ revealButtonHref }}
https://github.com/python/cpython/pull/120925/files#diff-3b25acd4f063b2ccb930c10bc327d1abf97577b1d830afe084cf8e03f37de0e8
https://github.com/python/cpython/pull/120925/files#diff-3b25acd4f063b2ccb930c10bc327d1abf97577b1d830afe084cf8e03f37de0e8
https://github.com/python/cpython/pull/120925/files#diff-3b25acd4f063b2ccb930c10bc327d1abf97577b1d830afe084cf8e03f37de0e8
https://github.com/python/cpython/pull/120925/files#diff-3b25acd4f063b2ccb930c10bc327d1abf97577b1d830afe084cf8e03f37de0e8
https://github.com/python/cpython/pull/120925/files#diff-3b25acd4f063b2ccb930c10bc327d1abf97577b1d830afe084cf8e03f37de0e8
Doc/library/queue.rsthttps://github.com/python/cpython/pull/120925/files#diff-5f8aec8fa45976df3a34d74ef406e3c373a0e02a978dd5d8c8d824a6783eafef
View file https://github.com/nineteendo/cpython/blob/525effeb30c0638b5a549c5cf504c67e4ba54dae/Doc/library/queue.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/120925/{{ revealButtonHref }}
https://github.com/python/cpython/pull/120925/files#diff-5f8aec8fa45976df3a34d74ef406e3c373a0e02a978dd5d8c8d824a6783eafef
https://github.com/python/cpython/pull/120925/files#diff-5f8aec8fa45976df3a34d74ef406e3c373a0e02a978dd5d8c8d824a6783eafef
https://github.com/python/cpython/pull/120925/files#diff-5f8aec8fa45976df3a34d74ef406e3c373a0e02a978dd5d8c8d824a6783eafef
https://github.com/python/cpython/pull/120925/files#diff-5f8aec8fa45976df3a34d74ef406e3c373a0e02a978dd5d8c8d824a6783eafef
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L116
Doc/whatsnew/3.14.rsthttps://github.com/python/cpython/pull/120925/files#diff-24e6cbe61d91e61059c44a7cf5f712499a11eb47a82d5f1a8db16ec7f9023c31
View file https://github.com/nineteendo/cpython/blob/525effeb30c0638b5a549c5cf504c67e4ba54dae/Doc/whatsnew/3.14.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/120925/{{ revealButtonHref }}
https://github.com/python/cpython/pull/120925/files#diff-24e6cbe61d91e61059c44a7cf5f712499a11eb47a82d5f1a8db16ec7f9023c31
https://github.com/python/cpython/pull/120925/files#diff-24e6cbe61d91e61059c44a7cf5f712499a11eb47a82d5f1a8db16ec7f9023c31
https://github.com/python/cpython/pull/120925/files#diff-24e6cbe61d91e61059c44a7cf5f712499a11eb47a82d5f1a8db16ec7f9023c31
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L376
Lib/asyncio/queues.pyhttps://github.com/python/cpython/pull/120925/files#diff-22a6bcb03e783378149a3e9411c185b13c908e61886ffd55145634b7ab12caac
View file https://github.com/nineteendo/cpython/blob/525effeb30c0638b5a549c5cf504c67e4ba54dae/Lib/asyncio/queues.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/120925/{{ revealButtonHref }}
https://github.com/python/cpython/pull/120925/files#diff-22a6bcb03e783378149a3e9411c185b13c908e61886ffd55145634b7ab12caac
https://github.com/python/cpython/pull/120925/files#diff-22a6bcb03e783378149a3e9411c185b13c908e61886ffd55145634b7ab12caac
https://github.com/python/cpython/pull/120925/files#diff-22a6bcb03e783378149a3e9411c185b13c908e61886ffd55145634b7ab12caac
https://github.com/python/cpython/pull/120925/files#diff-22a6bcb03e783378149a3e9411c185b13c908e61886ffd55145634b7ab12caac
Lib/queue.pyhttps://github.com/python/cpython/pull/120925/files#diff-aefad8744bccb805db2835af233fae516b8824a1e4d20b2545a640278c69620d
View file https://github.com/nineteendo/cpython/blob/525effeb30c0638b5a549c5cf504c67e4ba54dae/Lib/queue.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/120925/{{ revealButtonHref }}
https://github.com/python/cpython/pull/120925/files#diff-aefad8744bccb805db2835af233fae516b8824a1e4d20b2545a640278c69620d
https://github.com/python/cpython/pull/120925/files#diff-aefad8744bccb805db2835af233fae516b8824a1e4d20b2545a640278c69620d
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L377
Lib/test/test_asyncio/test_queues.pyhttps://github.com/python/cpython/pull/120925/files#diff-e1e38d6442dc7d84b4eabf47d2080772baff9c6b94f997af273f7d8ff4a37d5d
View file https://github.com/nineteendo/cpython/blob/525effeb30c0638b5a549c5cf504c67e4ba54dae/Lib/test/test_asyncio/test_queues.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/120925/{{ revealButtonHref }}
https://github.com/python/cpython/pull/120925/files#diff-e1e38d6442dc7d84b4eabf47d2080772baff9c6b94f997af273f7d8ff4a37d5d
https://github.com/python/cpython/pull/120925/files#diff-e1e38d6442dc7d84b4eabf47d2080772baff9c6b94f997af273f7d8ff4a37d5d
https://github.com/python/cpython/pull/120925/files#diff-e1e38d6442dc7d84b4eabf47d2080772baff9c6b94f997af273f7d8ff4a37d5d
https://github.com/python/cpython/pull/120925/files#diff-e1e38d6442dc7d84b4eabf47d2080772baff9c6b94f997af273f7d8ff4a37d5d
https://github.com/python/cpython/pull/120925/files#diff-e1e38d6442dc7d84b4eabf47d2080772baff9c6b94f997af273f7d8ff4a37d5d
https://github.com/python/cpython/pull/120925/files#diff-e1e38d6442dc7d84b4eabf47d2080772baff9c6b94f997af273f7d8ff4a37d5d
https://github.com/python/cpython/pull/120925/files#diff-e1e38d6442dc7d84b4eabf47d2080772baff9c6b94f997af273f7d8ff4a37d5d
https://github.com/python/cpython/pull/120925/files#diff-e1e38d6442dc7d84b4eabf47d2080772baff9c6b94f997af273f7d8ff4a37d5d
https://github.com/python/cpython/pull/120925/files#diff-e1e38d6442dc7d84b4eabf47d2080772baff9c6b94f997af273f7d8ff4a37d5d
https://github.com/python/cpython/pull/120925/files#diff-e1e38d6442dc7d84b4eabf47d2080772baff9c6b94f997af273f7d8ff4a37d5d
https://github.com/python/cpython/pull/120925/files#diff-e1e38d6442dc7d84b4eabf47d2080772baff9c6b94f997af273f7d8ff4a37d5d
https://github.com/python/cpython/pull/120925/files#diff-e1e38d6442dc7d84b4eabf47d2080772baff9c6b94f997af273f7d8ff4a37d5d
Please reload this pagehttps://github.com/python/cpython/pull/120925/files
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.