<br><br><div class="gmail_quote">On Tue, Jun 12, 2012 at 2:28 PM, Eric Snow <span dir="ltr"><<a href="mailto:ericsnowcurrently@gmail.com" target="_blank">ericsnowcurrently@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, Jun 12, 2012 at 10:48 AM, Brett Cannon <<a href="mailto:brett@python.org">brett@python.org</a>> wrote:<br>
> I should mention another option is to add sys.dont_read_bytecode (I think I<br>
> have discussed this with Frank at some point).<br>
<br>
</div>Or check for "sys.implementation.cache_tag is None"...<br></blockquote><div><br></div><div>Perfect! Will that work for Jython (Franke) and IronPython (Jeff)?</div><div><br></div><div>This does mean, though, that imp.cache_from_source() and imp.source_from_cache() might need to be updated to raise a reasonable exception when sys.implementation.cache_tag is set to None as I believe right now it will raise a TypeError because None isn't a str. But what to raise instead? TypeError? EnvironmentError?</div>
</div>