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

2016年10月12日 04:58:30 -0700

2016年10月12日 10:01 GMT+02:00 Nathaniel Smith <[email protected]>:
> It's more complicated than that -- the right algorithm is the one that
> Antoine implemented in 3.4.
> (...)
> My point is that
> forcing everyone who writes network code in Python to do that is
> silly, especially given that CPython's apparently been shipping this
> feature for years.
"For years" means since March 2014, Python 3.4.0 release, so 2 years ago.
We can document the optimization as a CPython implementation detail
and explain that it's only in Python >= 3.4.
So an application which should work on Python 2.7 as well cannot rely
on this optimization for example.
Victor
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to