[docs] [issue15329] clarify which deque methods are thread-safe
report at bugs.python.org
Thu Jul 12 00:10:44 CEST 2012
New submission from Chris Jerdonek <chris.jerdonek at gmail.com>:
I think it would help to clarify which collections.deque methods are thread-safe:
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.
assignee: docs at python
nosy: cjerdonek, docs at python, rhettinger
title: clarify which deque methods are thread-safe
versions: Python 2.7, Python 3.3
Python tracker <report at bugs.python.org>
More information about the docs