[Python-ideas] Bitwise operations on bytes class
Chris Angelico
rosuav at gmail.com
Tue Jun 17 00:59:30 CEST 2014
On Tue, Jun 17, 2014 at 6:16 AM, Nathaniel McCallum
<npmccallum at redhat.com> wrote:
> Of course my attached code is slow. This is precisely why I'm proposing
> native additions to the bytes class.
I presume you're aware that the bytes type is immutable, right? You're
still going to have at least some copying going on, whereas with a
mutable type you might well be able to avoid that. Efficiency suggests
bytearray instead.
ChrisA
More information about the Python-ideas
mailing list