[issue15329] clarify which deque methods are thread-safe

Chris Jerdonek 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:

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.

----------
assignee: docs at python
components: Documentation
keywords: easy
messages: 165275
nosy: cjerdonek, docs at python, rhettinger
priority: normal
severity: normal
status: open
title: clarify which deque methods are thread-safe
versions: Python 2.7, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15329>
_______________________________________


More information about the Python-bugs-list mailing list