Title: Over-stretched array.array support for buffer protocol
Type: behaviour Severity: normal
Components: Core Versions: Jython 2.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: jeff.allen Nosy List: jeff.allen,
Priority: normal Keywords:

Created on 2018-11-03.11:57:09 by jeff.allen, last changed 2018-11-03.11:57:09 by jeff.allen.

msg12167 (view) Author: Jeff Allen (jeff.allen) Date: 2018-11-03.11:57:08
Jython array.array supports the buffer protocol experimentally. However, it only creates byte views of the data, which is incorrect (and has to be readonly) for anything that is not actually byte data.

Support for plain byte data is essentially the same as bytearray, and reliable. Beyond 'b', I suggest it should claim not to support the action.

This was observed first in, alongside a problem with unicode, but the offered solution there is not satisfactory for the array.array issue.
Date User Action Args
2018-11-03 11:57:09jeff.allencreate