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 brett.cannon
Recipients Marc.Abramowitz, Ronan.Lamy, brett.cannon, jcea, ncoghlan
Date 2012-06-27.14:37:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340807869.75.0.35039099806.issue15031@psf.upfronthosting.co.za>
In-reply-to
Content
This all goes back to my original point: I don't want to promote people shipping around bytecode only as it hampers the use of other VMs.

Anyway, I'll continue to contemplate this. Any function would have to verify the magic number and flat-out fail otherwise to prevent parsing issues (e.g. Marc's patch works with or without the file size field to stay compatible with PyPycLoader.write_bytecode() implementations that might not set the file size field; a design flaw that I fixed in SourceLoader by taking away the ability to write bytecode). It would also have it return a dict much like path_stats() for easy comparison / verification.

But just to be very clear in case someone is hoping, I will NOT support an API to write bytecode as it make compatibility a nightmare and hampers changing the format as necessary.
History
Date User Action Args
2012-06-27 14:37:49brett.cannonsetrecipients: + brett.cannon, jcea, ncoghlan, Marc.Abramowitz, Ronan.Lamy
2012-06-27 14:37:49brett.cannonsetmessageid: <1340807869.75.0.35039099806.issue15031@psf.upfronthosting.co.za>
2012-06-27 14:37:49brett.cannonlinkissue15031 messages
2012-06-27 14:37:48brett.cannoncreate