This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients JohanAR, davin, itamarst, ncoghlan, pitrou, python-dev, rhettinger, sbt, tim.peters, yselivanov, zzzeek
Date 2017-08-17.20:01:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Using any kind of potentially-blocking synchronization primitive from __del__ or weakref callback is indeed a bug waiting for happen.  I agree non-trivial cases can be hard to debug, especially when people don't expect that kind of cause.

It would be ok to submit a patch solving this issue using C code IMHO.  Note the maxsize argument complicates things even though most uses of Queue don't use maxsize.

Of course, the general issue isn't only about Queue: other synchronization primitives are widely used.  See for an example.
Date User Action Args
2017-08-17 20:01:27pitrousetrecipients: + pitrou, tim.peters, rhettinger, ncoghlan, zzzeek, python-dev, sbt, JohanAR, yselivanov, itamarst, davin
2017-08-17 20:01:27pitrousetmessageid: <>
2017-08-17 20:01:27pitroulinkissue14976 messages
2017-08-17 20:01:27pitroucreate