This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients brett.cannon, dino.viehland, eric.snow, methane, serhiy.storchaka, skrah
Date 2019-06-04.06:16:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559628964.97.0.17260073898.issue36839@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-06-04 06:16:05serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, dino.viehland, methane, skrah, eric.snow
2019-06-04 06:16:04serhiy.storchakasetmessageid: <1559628964.97.0.17260073898.issue36839@roundup.psfhosted.org>
2019-06-04 06:16:04serhiy.storchakalinkissue36839 messages
2019-06-04 06:16:04serhiy.storchakacreate