-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Simplify consumers by making queue.Queue
an iterable
#120499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sorry, I might be missing something obvious, but can you please explain a motivation behind this change? |
@nineteendo, please stop editing your posts after submission. Edit before you submit, and don't submit until you aren't going to change it again. There is not a window in which substantial edits are okay; email notifications will only ever contain the original version, which at this point is much different than what is now here. |
Guido suggested this here: python/peps#3782 (comment)
I've made a separate issue, because the title didn't match.
Reverted. I realised we didn't need a separate class, so that's why I use generator in the PR.
Would you prefer me to create a new issue then? |
@nineteendo thank you! Please, next time include this context in the issue :) |
No, I would prefer that you stop editing your posts :). Not even to revert previous edits, just no more edits. My suggestion to edit before submission is intended for any post you make, not just new issues. Make sure you're saying what you want to say on the first try; there's no benefit to saying the wrong thing quickly when you have unlimited time to get it right. If your understanding of something changes, say so in a new message. |
In the future I'll try to create an issue and PR on my own fork first. I don't make significant changes to regular comments (just fixing a typo or suggestion). |
@Zac-HD, |
*.Queue.__iter__()
queue.Queue
an iterable
Uh oh!
There was an error while loading. Please reload this page.
Feature or enhancement
Proposal:
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
asyncio.Queue.__aiter__
#119154Linked PRs
queue.Queue
an iterable #120503The text was updated successfully, but these errors were encountered: