This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients martin.panter, mrolle
Date 2016-11-13.21:09:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479071386.63.0.687061135652.issue28646@psf.upfronthosting.co.za>
In-reply-to
Content
Issue 11427 has some discussion about this. It seems one concern was to make it hard to modify the buffer of a bytes object (which is supposed to be immutable). But I agree there should be an easy way to access read-only buffers in ctypes. Perhaps that could be by relaxing from_buffer(), or perhaps by some safer or more explicit API.

See also Issue 11429, complaining about scattered support of writable buffers elsewhere, and using bytes objects with an offset.
History
Date User Action Args
2016-11-13 21:09:46martin.pantersetrecipients: + martin.panter, mrolle
2016-11-13 21:09:46martin.pantersetmessageid: <1479071386.63.0.687061135652.issue28646@psf.upfronthosting.co.za>
2016-11-13 21:09:46martin.panterlinkissue28646 messages
2016-11-13 21:09:46martin.pantercreate