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 vstinner
Recipients Trip.Volpe, ajaksu2, amaury.forgeotdarc, barry, belopolsky, eric.araujo, eric.snow, flox, nedbat, rhettinger, terry.reedy, tshepang, vstinner
Date 2014-05-22.07:12:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400742772.66.0.530000369346.issue2506@psf.upfronthosting.co.za>
In-reply-to
Content
> Have you considered whether the genererated PYC files need a different magic number or some other way to indicate that they aren't production code?

Would it make sense to use a different sys.implementation.cache_tag? For example, the tag si currently "cpython-35". We can use "cpython-35P" when peephole optimizations are disabled. So you can have separated .pyc and .pyo files and the disabling peephole optimizations is compatible with -O and -OO command line options.
History
Date User Action Args
2014-05-22 07:12:53vstinnersetrecipients: + vstinner, barry, rhettinger, terry.reedy, amaury.forgeotdarc, belopolsky, ajaksu2, nedbat, eric.araujo, flox, tshepang, eric.snow, Trip.Volpe
2014-05-22 07:12:52vstinnersetmessageid: <1400742772.66.0.530000369346.issue2506@psf.upfronthosting.co.za>
2014-05-22 07:12:52vstinnerlinkissue2506 messages
2014-05-22 07:12:51vstinnercreate