
Aug. 7, 2009
3:31 p.m.
One other question: if a has type bytes and b has type bytearray, what types would you propose that a & b and b & a should have?
For consistency they should probably do what they currently do with concatenation: the type of the first expression is the type of the result:
b'a' + bytearray(b'b') b'ab' bytearray(b'b') + b'a' bytearray(b'ba')
-Eric