Message165275
| 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: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 |
|