[issue22003] BytesIO copy-on-write

Stefan Krah report at bugs.python.org
Mon Jul 21 18:23:01 CEST 2014


Stefan Krah added the comment:

The original wording in the PEP is this:

readonly
--------
    an integer variable to hold whether or not the memory is readonly. 1
    means the memory is readonly, zero means the memory is writable.


To me this means that a hypothetical compiler that could figure
out at compile time that the readonly flag is set would be allowed
to put the buffer contents into the read-only data section.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22003>
_______________________________________


More information about the Python-bugs-list mailing list