Pablo Galindo Salgado <pablog...@gmail.com> added the comment:

>"I want to terminate the queue and make sure that no resources are leaked.

Then you don't need to do anything special, those will be cleared on object 
destruction. This is not an unusual pattern even in other languages. For 
example, RAII in C++ is one of the most used patterns for acquiring resources 
and that works cleaning those resources on object destruction.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33081>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to