[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)

Chris Barker - NOAA Federal chris.barker at noaa.gov
Tue Oct 18 11:57:37 EDT 2016


> The proposal is that it should be documented as being part of the
> language spec starting in 3.4 (or whatever).

Is the performance characteristics of any object part of the language spec?

I.e if someone wrote an implementation with an O(n) insert dict, it
would suck, but wouldn't it still be Python?

-CHB



> So applications that
> support Python 2.7 can't rely on it, sure. But if I have an
> application that requires, say, 3.5+ but I don't want to depend on
> CPython-only implementation details, then I'm still allowed to use it.
>
> AFAIK basically the only project that would be affected by this is
> PyPy, and I when I asked on #pypy they said:
>
> <cfbolz> njs`: I think we either plan to or already support this
>
> so I'm not sure why this is controversial.
>
> -n
>
> --
> Nathaniel J. Smith -- https://vorpus.org
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/chris.barker%40noaa.gov


More information about the Python-Dev mailing list