[issue26259] Memleak when repeated calls to asyncio.queue.Queue.get is performed, without push to queue.

Jonas Brunsgaard report at bugs.python.org
Tue Feb 2 05:25:50 EST 2016


Jonas Brunsgaard added the comment:

You are right that get_nowait() is the correct api for my use case, using get_nowait() nothing is pushed to the internal _getters deque. The reason for my us of get() is that job futures are created one place in the code and then thrown in a processing function that will yield the job future. This design was created to handle all exceptions in processing(), but I agree that get_nowait would have been the superior solution.

I do not have time on my hands right now to take on the challenge of writing a patch, but I might take it up later, sound fun ;)

Good day to you sir, and thank you for the feedback.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26259>
_______________________________________


More information about the Python-bugs-list mailing list