New submission from Chris Jerdonek <chris.jerdo...@gmail.com>:

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`).

----------
components: Library (Lib)
messages: 165276
nosy: cjerdonek, rhettinger
priority: normal
severity: normal
status: open
title: allow deque to act as a thread-safe circular buffer
type: enhancement

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15330>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to