FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

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

Repository navigation

Closed
Changes from 1 commit
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
e9c1a3e
Add `asyncio.Queue.__aiter__()`
nineteendo Jun 14, 2024
3cd59ee
Reduce diff
nineteendo Jun 14, 2024
16fc429
Add test
nineteendo Jun 14, 2024
f13ddb3
Simplify code
nineteendo Jun 14, 2024
afd7ad4
Add to `__all__`
nineteendo Jun 14, 2024
214548c
📜🤖 Added by blurb_it.
blurb-it[bot] Jun 14, 2024
9824b63
Simplify example
nineteendo Jun 14, 2024
6358b8e
Fix indentation
nineteendo Jun 14, 2024
316b800
Improve order
nineteendo Jun 14, 2024
92f3295
Test `StopAsyncIteration`
nineteendo Jun 14, 2024
a18767d
Document `AsyncQueueIterator`
nineteendo Jun 14, 2024
e826a01
Add `queue.Queue.__iter__()`
nineteendo Jun 14, 2024
c8cbe4d
Add `asyncio.Queue.__iter__()`
nineteendo Jun 14, 2024
940e3c0
📜🤖 Added by blurb_it.
blurb-it[bot] Jun 14, 2024
8fca288
Fix lint
nineteendo Jun 14, 2024
499457c
Wait
nineteendo Jun 14, 2024
7f206d9
Update 2024-06-14-13-37-45.gh-issue-120499.JK7Mv8.rst
nineteendo Jun 14, 2024
320691c
Apply suggestions from code review
nineteendo Jun 15, 2024
f43bdb1
Unpack for loop
nineteendo Jun 15, 2024
4ca4a93
Insert newline
nineteendo Jun 15, 2024
fffacb2
Simplify example
nineteendo Jun 15, 2024
92d7b16
Indent correctly
nineteendo Jun 15, 2024
ce23fce
Document `__aiter__()`
nineteendo Jun 15, 2024
640d2a8
Fix indent attempt 1
nineteendo Jun 15, 2024
3cad181
Move while loop inside try/except block
nineteendo Jun 18, 2024
cc9f7ef
test iteration
nineteendo Jun 18, 2024
92d7dc0
Reduce diff
nineteendo Jun 18, 2024
a92e031
Run test
nineteendo Jun 18, 2024
3621cc1
Reduce diff
nineteendo Jun 18, 2024
98252c6
Adapt example from asyncio
nineteendo Jun 18, 2024
4b1ff4b
Simpler example
nineteendo Jun 18, 2024
5e9f48b
Put definition first
nineteendo Jun 18, 2024
4b382ec
Print worker name
nineteendo Jun 18, 2024
076a7a6
Restore example
nineteendo Jun 18, 2024
6132f5a
Indent example
nineteendo Jun 18, 2024
6c9aa6d
Make `AsyncQueueIterator` private
nineteendo Jun 18, 2024
9a28bc5
Cleanup tests
nineteendo Jun 18, 2024
0a69fd9
Instantiate
nineteendo Jun 18, 2024
e6a5849
Use term
nineteendo Jun 18, 2024
4407eed
Move inside with block
nineteendo Jun 18, 2024
1e500ab
Add comment
nineteendo Jun 18, 2024
583f642
Re-order
nineteendo Jun 18, 2024
1b6e781
Remove comment
nineteendo Jun 18, 2024
101409f
Separate function definition
nineteendo Jun 18, 2024
2d5998a
Update whatsnew
nineteendo Jun 19, 2024
841d50c
Update blurb
nineteendo Jun 19, 2024
bcdb21f
Update whatsnew
nineteendo Jun 19, 2024
0743257
Update blurb
nineteendo Jun 19, 2024
d624bea
Apply suggestions from code review
nineteendo Jun 19, 2024
0a8a72b
Update Doc/library/asyncio-queue.rst
nineteendo Jun 19, 2024
b3199df
Rename 2024-06-14-10-30-43.gh-issue-119154.1MHWA-.rst to 2024-06-14-1…
nineteendo Jun 19, 2024
5e37cd5
Rename 2024-06-14-13-37-45.gh-issue-120499.JK7Mv8.rst to 2024-06-14-1…
nineteendo Jun 19, 2024
d71eb91
Make queue a private attribute
nineteendo Jun 19, 2024
1f05869
Merge branch 'main' into add-Queue.__iter__
nineteendo Jun 19, 2024
23e37f4
Clarify behaviour
nineteendo Jun 20, 2024
3bb4e65
Fix grammar
nineteendo Jun 20, 2024
b23a1b3
Clarify documentation
nineteendo Jun 21, 2024
b4e5c60
Delete Misc/NEWS.d/next/Library/2024-06-14-13-37-45.gh-issue-120499.J…
nineteendo Jun 23, 2024
f6ba54e
Update 3.14.rst
nineteendo Jun 23, 2024
a50f12f
Explicit method
nineteendo Jun 23, 2024
33af2a6
Re-order
nineteendo Jun 23, 2024
99db150
Revert calling `task_done()`
nineteendo Jun 23, 2024
fd96d7d
Add more tests
nineteendo Jun 23, 2024
3fb6f88
Call `iter()`
nineteendo Jun 23, 2024
d2bf0a1
Fix tests
nineteendo Jun 23, 2024
e2f6ad8
Add paragraph about `shutdown()`
nineteendo Jun 23, 2024
10188a3
Test blocking
nineteendo Jun 23, 2024
ef06383
Ensure queue is defined
nineteendo Jun 23, 2024
ae06d69
Update whatsnew
nineteendo Jun 23, 2024
8613f61
📜🤖 Added by blurb_it.
blurb-it[bot] Jun 23, 2024
ba8b134
Explicit method
nineteendo Jun 23, 2024
5d6681a
Fix lint
nineteendo Jun 23, 2024
823389f
Don't use multiple threads
nineteendo Jun 23, 2024
a1c8ebb
Don't use multiple threads
nineteendo Jun 23, 2024
104423a
Add docstrings
nineteendo Jun 23, 2024
d3e06d4
Revert newline
nineteendo Jun 23, 2024
f5aeeac
Delete Misc/NEWS.d/next/Library/2024-06-14-10-30-43.gh-issue-119154.1…
nineteendo Jun 23, 2024
efc7d8e
Remove redundant parentheses
nineteendo Jun 23, 2024
fb98fa6
Update whatsnew
nineteendo Jun 23, 2024
a56505d
Fix typo
nineteendo Jun 23, 2024
6f146f5
📜🤖 Added by blurb_it.
blurb-it[bot] Jun 23, 2024
0bbcfdd
Update whatsnew
nineteendo Jun 23, 2024
81da0e6
Update 3.14.rst
nineteendo Jun 24, 2024
461d1e1
Delete Misc/NEWS.d/next/Library/2024-06-23-20-31-59.gh-issue-120924.2…
nineteendo Jun 24, 2024
48783bb
Merge pull request #16 from nineteendo/add-asyncio.Queue.iter
nineteendo Jun 24, 2024
4d7e55b
Update 2024-06-23-19-35-14.gh-issue-120924.7CXFaX.rst
nineteendo Jun 24, 2024
888ae9e
Remove parentheses
nineteendo Jun 24, 2024
a413d13
Link to github issue
nineteendo Jun 24, 2024
dcdd17e
Rename 2024-06-23-19-35-14.gh-issue-120924.7CXFaX.rst to 2024-06-23-1…
nineteendo Jun 25, 2024
525effe
Update issue number
nineteendo Jun 25, 2024
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
Next Next commit
Fix lint
  • Loading branch information
nineteendo committed Jun 23, 2024
commit 5d6681a231e8624bc90fb572e3497a3d72d37205
2 changes: 1 addition & 1 deletion Lib/asyncio/queues.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def get_nowait(self):
def iter(self):
# TODO(Nice Zombies)
return _AsyncQueueIterator(self)

def iter_nowait(self):
# TODO(Nice Zombies)
try:
Expand Down

Back | FazBrowse Home | New Git URL