STINNER Victor added the comment:

I took me some time, but Antoine explained me the use case on IRC :-) The patch 
is useful is the bytearray is used as a FIFO: remove front, append tail. It can 
be seen as an implementation for BufferedReader. Consumer/producer is a common 
pattern, especially consuming one end (front) and produce at the other end 
(tail).

----------

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

Reply via email to