This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients pitrou, serhiy.storchaka
Date 2013-09-25.15:50:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <443330024.22346548.1380124213098.JavaMail.root@zimbra10-e2.priv.proxad.net>
In-reply-to <1380124030.91.0.789474008697.issue19087@psf.upfronthosting.co.za>
Content
> And the same is for a list. List and bytearray are wrong types for
> front deleting.

There is no bytedeque().

> I don't think we should increase the size of
> bytearray, and complicate and slowdown it for such special purpose.

I don't think it would really slow it down. It should be a simple
optimization. And FIFO buffers are quite common when writing parsers
for network applications.

> If you want to implement a fifo using bytearray more optimal, defer
> the deleting until used size less than a half of allocated size. See
> for example XMLPullParser.read_events() in
> Lib/xml/etree/ElementTree.py.

Of course, I wrote that code. Still, doing it manually is suboptimal
and cumbersome when it could be done transparently.
History
Date User Action Args
2013-09-25 15:50:19pitrousetrecipients: + pitrou, serhiy.storchaka
2013-09-25 15:50:19pitroulinkissue19087 messages
2013-09-25 15:50:19pitroucreate