[Python-ideas] Fixing the Python 3 bytes constructor
Antoine Pitrou
solipsis at pitrou.net
Fri Mar 28 18:25:44 CET 2014
On Fri, 28 Mar 2014 17:06:24 +0000 (UTC)
Benjamin Peterson <benjamin at python.org>
wrote:
> Antoine Pitrou <solipsis at ...> writes:
> > I don't like it, but I also don't think it's enough of a nuisance to be
> > deprecated.
> > (the indexing behaviour of bytes objects is far more annoying)
>
> I agree. We would add a method that iterates over single bytes as bytes
> objects instead of integers.
In my experience, indexing is far more common than iterating over bytes.
Regards
Antoine.
More information about the Python-ideas
mailing list