On Fri, Oct 29, 2010 at 12:21 PM, Barry Warsaw <span dir="ltr">&lt;<a href="mailto:barry@python.org">barry@python.org</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Oct 29, 2010, at 12:43 PM, Casey Duncan wrote:<br>
<br>
&gt;I like Python 3, I am using it for my latest projects, but I am also keeping<br>
&gt;Python 2 compatibility. This incurs some overhead, and basically means I am<br>
&gt;still really only using Python 2 features. So in some respects, my Python 3.x<br>
&gt;support is only tacit, it works as well as for Python 2, but it&#39;s not taking<br>
&gt;advantage of Python 3 really. I haven&#39;t run into a situation yet where I<br>
&gt;really want to or have to use Python 3 exclusive features, but then again I&#39;m<br>
&gt;not really learning to use Python 3 either, short of the new C api.<br>
<br>
</div>One thing that *might* be interesting to explore for Python 3.3 would be<br>
something like `python3 --1` or some such switch that would help Python 2 code<br>
run more easily in Python 3.  This might be a hook to 2to3 or other internal<br>
changes that help some of the trickier bits of writing cross-compatible code.<br></blockquote><div><br>More useful IMHO would be things like &quot;from __past__ import print_statement&quot;, still requiring some annotation of code to make it run, but less invasive than translating code itself.  There&#39;s still major things you can&#39;t handle like that, but if something is syntactically acceptable in both Python 2 and 3 then it&#39;s a lot easier to apply simple conditionals around semantics.  This would remove the need, for example, for people to use sys.exc_info() to avoid using &quot;except Exception as e&quot;.<br>

<br>-- <br></div></div>Ian Bicking  |  <a href="http://blog.ianbicking.org">http://blog.ianbicking.org</a><br>