[Python-Dev] bytes thoughts (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 2 04:42:49 CET 2006


Baptiste Carvello wrote:

while manipulating binary data will happen mostly with bytes objects, some operations are better done with ints, like the bit manipulations with the &|~^ operators.

Why not just support bitwise operations directly on the bytes object?

-- Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | Carpe post meridiam! | Christchurch, New Zealand | (I'm not a morning person.) | greg.ewing at canterbury.ac.nz +--------------------------------------+



More information about the Python-Dev mailing list