[issue19251] bitwise ops for bytes of equal length

2016-04-26 Thread cowlicks
cowlicks added the comment: I'll look through the list @serhiy.storchaka posted and make sure this still seems sane to me. -- ___ Python tracker <http://bugs.python.org/is

[issue19251] bitwise ops for bytes of equal length

2016-04-26 Thread cowlicks
cowlicks added the comment: @gvanrossum in this previous comment https://bugs.python.org/issue19251?@ok_message=msg%20264184%20created%0Aissue%2019251%20message_count%2C%20messages%20edited%20ok&@template=item#msg257964 I pointed out code from the wild which would be more readable, and po

[issue19251] bitwise ops for bytes of equal length

2016-04-25 Thread cowlicks
cowlicks added the comment: To reiterate, this issue would make more readable, secure, and speed up a lot of code. The concerns about this being a numpy-like vector operation are confusing to me. The current implementation is already vector-like, but lacks size checking. Isn't "

[issue19251] bitwise ops for bytes of equal length

2016-01-11 Thread cowlicks
cowlicks added the comment: @Andrew Barnert > Maybe if you're coming to Python from... I'm not sure if your trying argue that my expectations are unusual? Python is my first programming language. To reiterate: I expected cpython to support bitwise operations on binary data. I don

[issue19251] bitwise ops for bytes of equal length

2016-01-10 Thread cowlicks
cowlicks added the comment: I've attached a diff that adds ^, |, and & to bytes and bytearray object on the master branch (err the analogous hg thing). It also includes a test file which definitely is in the wrong place, but demonstrates what is working. Personally this came up wh