Message165275
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. |
|
Date |
User |
Action |
Args |
2012-07-11 22:10:44 | chris.jerdonek | set | recipients:
+ chris.jerdonek, rhettinger, docs@python |
2012-07-11 22:10:44 | chris.jerdonek | set | messageid: <1342044644.52.0.376014623438.issue15329@psf.upfronthosting.co.za> |
2012-07-11 22:10:43 | chris.jerdonek | link | issue15329 messages |
2012-07-11 22:10:43 | chris.jerdonek | create | |
|