Issue2715

classification
Title: Over-stretched array.array support for buffer protocol
Type: behaviour Severity: normal
Components: Core Versions: Jython 2.7
Milestone:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: jeff.allen Nosy List: jeff.allen, rferguson@devendortech.com
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.

Messages
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 https://github.com/jythontools/jython/pull/119, alongside a problem with unicode, but the offered solution there is not satisfactory for the array.array issue.
History
Date User Action Args
2018-11-03 11:57:09jeff.allencreate