[Python-ideas] String and bytes bitwise operations

Greg Ewing greg.ewing at canterbury.ac.nz
Fri May 18 02:07:41 EDT 2018


Steven D'Aprano wrote:
> But XORing bytes seems perfectly reasonable. Bytes are numbers, even if 
> we display them as ASCII characters.

Yep. Implement it for bytes, then the user can decode/encode
as appropriate for the application.

-- 
Greg



More information about the Python-ideas mailing list