Message280717
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. |
|
Date |
User |
Action |
Args |
2016-11-13 21:09:46 | martin.panter | set | recipients:
+ martin.panter, mrolle |
2016-11-13 21:09:46 | martin.panter | set | messageid: <1479071386.63.0.687061135652.issue28646@psf.upfronthosting.co.za> |
2016-11-13 21:09:46 | martin.panter | link | issue28646 messages |
2016-11-13 21:09:46 | martin.panter | create | |
|