[Python-ideas] bytes indexing behavior

Ethan Furman ethan at stoneleaf.us
Tue Jun 7 11:59:22 EDT 2016


On 06/07/2016 04:27 AM, Antoine Pitrou wrote:

> While I prefer Python 2's indexing behaviour, IMHO that ship has sailed.
> Python 3.5 is probably seeing massive adoption now, and by introducing
> another behaviour switch we only confuse users and make their lives
> miserable.

I agree on both counts.  Wasn't there a proposal/issue about adding some 
convenience methods to bytes to help ease this pain?  My quick search 
did not find it.

> Let's move on and stop obsessing about errors made in the past.  Every
> language has some of those.

Yup.

--
~Ethan~


More information about the Python-ideas mailing list