[Python-ideas] Bitwise operations on bytes class

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Jun 17 02:00:20 CEST 2014


Chris Angelico wrote:
> 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.

Why not both?

-- 
Greg


More information about the Python-ideas mailing list