Replies: 2 comments 1 reply
-
We currently have |
Beta Was this translation helpful? Give feedback.
1 reply
-
x = queue.Queue()
You can leave the max size empty
explicitly setting it to none would be a nice way of overriding the linter
behavior
basically when you have a que with no maximum size, there are only two
possibilities
1. You secretly know that you're never going to push more than a certain
amount onto it, or that the consumer is going to always move faster than
the producer, so you're not worried about it
2. You don't care if the program crashes when it runs out of ram
In the first case it's probably a reasonable to add a maximum size
In the second case it's reasonable to make the behavior explicit or provide
a linter override
…On Tue, Oct 31, 2023, 11:51 PM Zanie Blue ***@***.***> wrote:
Auto-cancels the task when it gets garbage collected sometime in the
future :D I'm so glad we have a rule for that — it's a devious behavior.
@earonesty <https://github.com/earonesty> Can you please include an
example of the queue creation?
—
Reply to this email directly, view it on GitHub
<#8387 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAMMUORHOH62ZKAZ63PYT3YCHBKPAVCNFSM6AAAAAA6YFHII6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TINBRHAYDK>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
quite often a future bug to create an unbounded queue.
guaranteed a bug to create an asyncio task when you don't collect the return value (auto cancels the task when it goes out of scope)
Beta Was this translation helpful? Give feedback.
All reactions