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 chris.jerdonek
Recipients chris.jerdonek, docs@python, rhettinger
Date 2012-07-11.22:10:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342044644.52.0.376014623438.issue15329@psf.upfronthosting.co.za>
In-reply-to
Content
I think it would help to clarify which collections.deque methods are thread-safe:

http://docs.python.org/dev/library/collections.html?highlight=deque#collections.deque

Currently, the documentation says that "Deques support thread-safe, memory efficient appends and pops from either side...," but it isn't obvious if this is meant to apply to all methods, or just the methods named append*() and pop*().

For example, is rotate() thread-safe?  The illustration given of d.appendleft(d.pop()) seems like it could be interleaved.
History
Date User Action Args
2012-07-11 22:10:44chris.jerdoneksetrecipients: + chris.jerdonek, rhettinger, docs@python
2012-07-11 22:10:44chris.jerdoneksetmessageid: <1342044644.52.0.376014623438.issue15329@psf.upfronthosting.co.za>
2012-07-11 22:10:43chris.jerdoneklinkissue15329 messages
2012-07-11 22:10:43chris.jerdonekcreate