bytes objects are by their definition immutable and read only. but when
passing one to a buffer api that tries to use the PyBUF_LOCK flag it raises
BufferError "Cannot lock this object." from PyBuffer_FillInfo in
Objects/abstract.c as called by Objects/bytesobject.c's bytes_getbuffer
method.
I th
Gregory P. Smith wrote:
> bytes objects are by their definition immutable and read only. but when
> passing one to a buffer api that tries to use the PyBUF_LOCK flag it
> raises BufferError "Cannot lock this object." from PyBuffer_FillInfo in
> Objects/abstract.c as called by Objects/bytesobjec