Message8612

Author santa4nt
Recipients JonathanFeinberg, duffy151, fwierzbicki, irmen, santa4nt, zyasoft
Date 2014-06-09.16:11:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402330294.48.0.548567380745.issue1949@psf.upfronthosting.co.za>
In-reply-to
Content
@zyasoft, I see your point, too. Were we writing this from scratch, I'd probably use Java's already concurrent collections data structures, too (ConcurrentLinkedDeque, especially, is quite elegant with its non-blocking no-lock mechanisms).

But the "thread-safety" doc on `deque` on CPython doc is also a bit misleading, IMHO. It's "thread-safe" in the same sense that `list` is thread-safe, namely its methods are all implemented in C with the GIL guaranteeing its atomicity per function call. If we want to take this "thread-safety" guarantee the correct way for deque, we'd want to do the same for all the built-in collections data structures like list, set, etc.
History
Date User Action Args
2014-06-09 16:11:34santa4ntsetmessageid: <1402330294.48.0.548567380745.issue1949@psf.upfronthosting.co.za>
2014-06-09 16:11:34santa4ntsetrecipients: + santa4nt, fwierzbicki, irmen, zyasoft, JonathanFeinberg, duffy151
2014-06-09 16:11:34santa4ntlinkissue1949 messages
2014-06-09 16:11:34santa4ntcreate