Message12167

Author jeff.allen
Recipients jeff.allen, rferguson@devendortech.com
Date 2018-11-03.11:57:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541246229.31.0.788709270274.issue2715@psf.upfronthosting.co.za>
In-reply-to
Content
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.allensetrecipients: + jeff.allen, rferguson@devendortech.com
2018-11-03 11:57:09jeff.allensetmessageid: <1541246229.31.0.788709270274.issue2715@psf.upfronthosting.co.za>
2018-11-03 11:57:09jeff.allenlinkissue2715 messages
2018-11-03 11:57:08jeff.allencreate