8 Jan
2014
8 Jan
'14
6:08 a.m.
Terry Reedy writes:
The above describes a minor variation on bytes and seems to me to be a classic case for subclassing, whether in Python for ease or C for speed, in an imported module.
I agree with you, but the discussion on python-dev indicates that the majority of core devs, including Guido IIUC, disagree with us. In fact they want to add many str-like capabilities to bytes (and the related mutable classes bytearray and memoryview).