Inada Naoki <songofaca...@gmail.com> added the comment:
read-only is slightly different than const / immutable. const / immutable means anyone can not modify the memory. read-only means only the memory should not be modified through the buffer. But underlaying memory block can be modified by owner who creates buffer. For example, you can create read only buffer from bytearray, or even raw C char array. It doesn't violate semantics of read-only. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36839> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com