[issue15056] Have imp.cache_from_source() raise NotImplementedError when cache tag not available

Brett Cannon report at bugs.python.org
Thu Jun 14 17:32:15 CEST 2012


Brett Cannon <brett at python.org> added the comment:

So sys.dont_write_bytecode is there to prevent bytecode writing but not loading. This is an issue for some systems (e.g. clusters) where there are so many processes running Python that they start to trample each others bytecode files and it leads to malformed data. If you set sys.implementation.cache_tag to None you stop all bytecode usage (reading and writing), and thus is "disabled" entirely,  not just for writing.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15056>
_______________________________________


More information about the Python-bugs-list mailing list