bufferinfo.readonly

An integer field indicating whether the Python buffer is read-only.

struct bufferinfo
int readonly;