New submission from Chris Jerdonek <chris.jerdo...@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@python
components: Documentation
keywords: easy
messages: 165275
nosy: cjerdonek, docs@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue15329>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to