<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 23, 2014 at 10:08 AM, Donald Stufft <span dir="ltr"><<a href="mailto:donald@stufft.io" target="_blank">donald@stufft.io</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div class=""><div>On May 23, 2014, at 12:49 PM, Guido van Rossum <<a href="mailto:guido@python.org" target="_blank">guido@python.org</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr"><div><div>I'm not happy with the direction this is taking. I would prefer an approach that *first* implements the minimal thing (an internal flag, set by an environment variable, to disable the peephole optimizer) and *then* perhaps revisits the greater UI for specifying optimization levels and the consequences this has for pyc/pyo files.<br>
</div></div></div></blockquote><div><br></div></div><div>I agree with this I think.</div><div class=""><br><blockquote type="cite"><div dir="ltr"><div><div>
<br>I would also like to remind people the reason why there are separate pyc and pyo files: they are separate to support precompilation of the standard library and installed 3rd party packages for different optimization levels.<br>
</div></div></div></blockquote><div><br></div></div><div>Sadly enough it doesn’t go far enough since you can’t have (as far as I know) a .pyo for both -O and -OO. Perhaps the PEP isn’t the worst idea in order to make all of that work with the __pycache__ directories and the pyc tagging.</div>
</div></div></blockquote></div><br></div><div class="gmail_extra">Agreed (though I think that -OO is a very niche feature) and I think deciding on what to do about this (if anything) should not hold the peephole disabling feature hostage. (The latter of course has to decide what to do about pyc files, but the should be a suitable answer that doesn't require solving the general problem nor prevents the general problem being solved.)<br clear="all">
</div><div class="gmail_extra"><br>-- <br>--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)
</div></div>