Message162749
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? |
|
Date |
User |
Action |
Args |
2012-06-14 03:19:32 | terry.reedy | set | recipients:
+ terry.reedy, vstinner, lebigot, eric.araujo, r.david.murray, docs@python, Ronan.Lamy, mherrmann.at |
2012-06-14 03:19:32 | terry.reedy | set | messageid: <1339643972.3.0.135280616246.issue12982@psf.upfronthosting.co.za> |
2012-06-14 03:19:31 | terry.reedy | link | issue12982 messages |
2012-06-14 03:19:31 | terry.reedy | create | |
|