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 ncoghlan
Recipients barry, brett.cannon, eric.snow, ncoghlan, r.david.murray, syeberman
Date 2016-09-08.01:24:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473297887.75.0.595680847819.issue28007@psf.upfronthosting.co.za>
In-reply-to
Content
I run into this kind of problem when switching back and forth between running things directly on my laptop and running them as a mounted volume in a container, since the permissions and SELinux labels on the cache can get messed up.

However, in those cases, writing back to the cache will also fail (since it's a "those are not your files, hands off" permissions problem).

So I'd be a fan of downgrading problems with the .pyc cache to warnings in general - if we read it and that fails, OK, we'll revert to using the source. If we try to write it, and that fails, well that's potentially OK too - writing to the cache is to speed up the *next* invocation of the module, and whether or not we actually care about that is going to be situational.
History
Date User Action Args
2016-09-08 01:24:47ncoghlansetrecipients: + ncoghlan, barry, brett.cannon, syeberman, r.david.murray, eric.snow
2016-09-08 01:24:47ncoghlansetmessageid: <1473297887.75.0.595680847819.issue28007@psf.upfronthosting.co.za>
2016-09-08 01:24:47ncoghlanlinkissue28007 messages
2016-09-08 01:24:46ncoghlancreate