Brett Cannon <br...@python.org> added the comment:

I agree with Eric. While I understand what Serhiy is saying about code objects 
being more than a bytearray of bytecode, the buffer protocol is still a view on 
an object, and that view happens to be for a subset which I think is acceptable 
as I think of what a buffer of a code object would be other than the bytecode.

I also think read-only is a good enough guarantee. We're talking low-level 
stuff here and if anyone were to muck with this stuff they are already playing 
with fire.

----------
nosy: +brett.cannon

_______________________________________
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

Reply via email to