[issue19251] bitwise ops for bytes of equal length

Nick Coghlan report at bugs.python.org
Thu May 17 12:20:57 EDT 2018


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Thanks for the link Serhiy (I'd forgotten about the struct changes proposed in PEP 3118), but the existing struct formatting codes are fine for my purposes.

The question is whether we might be able to avoid some bytes->Python-objects->bytes cycles if there were a few more contiguous-binary-data-centric operations on bytes and/or memoryview (similar to the way the ASCII-centric operations on bytes and bytearray help to avoid bytes->text->bytes cycles).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue19251>
_______________________________________


More information about the Python-bugs-list mailing list