Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Yet one consideration. The bytecode is actually a wordcode, a sequence of 
16-bit words, and the start of the array must be properly aligned. There is no 
problem if it is a data of the bytes object, but if you have a mapping of the 
pyc file the alignment is not guarantied. You need to change also the marshal 
protocol or save the bytecode in other file. This is a large change.

So you need to make several large changes (changes in the import system, change 
in the pyc file) for using this feature. Supporting the buffer protocol in code 
objects is minor change to this. If you need to patch other parts of Python it 
is not hard to patch also the code object in your custom build. Other Python 
users will not have benefit from this.

----------

_______________________________________
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