Message165276
It seems like it would be useful if collections.deque had a thread-safe method that could rotate(1) and return the rotated value.
This would let deque to act as a thread-safe circular buffer (e.g. if serving jobs to multiple threads in a loop, like `python -m test --forever`). |
|
Date |
User |
Action |
Args |
2012-07-11 22:20:38 | chris.jerdonek | set | recipients:
+ chris.jerdonek, rhettinger |
2012-07-11 22:20:38 | chris.jerdonek | set | messageid: <1342045238.04.0.281063005128.issue15330@psf.upfronthosting.co.za> |
2012-07-11 22:20:37 | chris.jerdonek | link | issue15330 messages |
2012-07-11 22:20:37 | chris.jerdonek | create | |
|