Author gvanrossum
Recipients JohanAR, davin, gvanrossum, itamarst, ncoghlan, pitrou, python-dev, rhettinger, sbt, serhiy.storchaka, tim.peters, yselivanov, zzzeek
Date 2017-09-04.04:18:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504498719.82.0.435131007424.issue14976@psf.upfronthosting.co.za>
In-reply-to
Content
Oh well. While it is undoubtedly useful I wish we had had more experience and factored the API differently. Ditto for the maxsize=N feature.

So, while it's not too late, perhaps we should indeed follow Antoine's advice and implement a different queue that has fewer features but is guaranteed to be usable by signal handlers and GC callbacks (including __del__). The nice part here is that a queue is mostly a wrapper around a deque anyways, and deque itself is reentrant. (At least one would hope so -- Antoine's patch to Queue assumes this too, and I can't think of a reason why deque would need to release the GIL.)
History
Date User Action Args
2017-09-04 04:18:40gvanrossumsetrecipients: + gvanrossum, tim.peters, rhettinger, ncoghlan, pitrou, zzzeek, python-dev, sbt, serhiy.storchaka, JohanAR, yselivanov, itamarst, davin
2017-09-04 04:18:39gvanrossumsetmessageid: <1504498719.82.0.435131007424.issue14976@psf.upfronthosting.co.za>
2017-09-04 04:18:39gvanrossumlinkissue14976 messages
2017-09-04 04:18:38gvanrossumcreate