(original) (raw)
+1 on the technical spec from me. The rationale needs work, but you already know that :)
For API consistency, I suggest explicitly noting that bytearray will also support the operation, generating a bytearray result.
I also suggest introducing the phrase "ASCII compatible segments in binary formats" somewhere, as the intended use case for \*all\* the ASCII assuming methods on the bytes and bytearray types, including this new one.
Cheers,
Nick.