[Python-Dev] O(1) deletes from the front of bytearray (was: Re: Adding bytes.frombuffer() constructor to PEP 467 (was: [Python-ideas] Adding bytes.frombuffer() constructor)

Nathaniel Smith njs at pobox.com
Wed Oct 12 17:16:16 EDT 2016


On Wed, Oct 12, 2016 at 3:28 AM, INADA Naoki <songofacandy at gmail.com> wrote:
> When Tornado drop Python 2.7 support, they can use bytearray, and
> iostream can be more simple and fast.

FYI 2.7 does have bytearray. (You still have to implement the O(1)
deletion part as a layer on top, like Victor points out, but I suspect
that'd still be dramatically simpler than what they're doing now...)

-n

-- 
Nathaniel J. Smith -- https://vorpus.org


More information about the Python-Dev mailing list