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 terry.reedy
Recipients Ronan.Lamy, docs@python, eric.araujo, lebigot, mherrmann.at, r.david.murray, terry.reedy, vstinner
Date 2012-06-14.03:19:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1339643972.3.0.135280616246.issue12982@psf.upfronthosting.co.za>
In-reply-to
Content
The response from pydev is that running .pyc with -O or running .pyo without is not officially supported. Even if mixing usually works now, it does not always work properly for code with __debug__, assert, or __doc__. The scope of possible malfunctions may increase if ideas for more aggressive optimization are implemented. So mixing the two types of cache files is 'do at your own risk' and 'don't complain if it does not work now or ceases to work in the future'.

A principle reason for the above is that __debug__ == <not  -O> and that it affects complilation, not just execution.

The doc should say the above more clearly. Eric L., where is the doc quote from?
History
Date User Action Args
2012-06-14 03:19:32terry.reedysetrecipients: + terry.reedy, vstinner, lebigot, eric.araujo, r.david.murray, docs@python, Ronan.Lamy, mherrmann.at
2012-06-14 03:19:32terry.reedysetmessageid: <1339643972.3.0.135280616246.issue12982@psf.upfronthosting.co.za>
2012-06-14 03:19:31terry.reedylinkissue12982 messages
2012-06-14 03:19:31terry.reedycreate