<div dir="ltr"><div style class="markdown-here-wrapper" id="markdown-here-wrapper-43821"><p style="margin:1.2em 0px!important">you’ll have to do quite a bit:</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline;white-space:pre;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important;display:block;padding:0.5em;color:rgb(51,51,51);background:none repeat scroll 0% 0% rgb(248,248,255)" class="language-python"><span style="color:rgb(153,153,136);font-style:italic" class="comment"># -*- coding: utf-8 -*-</span>
<span style="color:rgb(51,51,51);font-weight:bold" class="keyword">from</span> __future__ <span style="color:rgb(51,51,51);font-weight:bold" class="keyword">import</span> print_function, division, unicode_literals, absolute_import
<span style="color:rgb(51,51,51);font-weight:bold" class="keyword">from</span> io <span style="color:rgb(51,51,51);font-weight:bold" class="keyword">import</span> open
range = xrange
str = unicode
basestring = (str, bytes) <span style="color:rgb(153,153,136);font-style:italic" class="comment">#for isinstance()</span></code></pre>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/21 Eric V. Smith <span dir="ltr"><<a href="mailto:eric@trueblade.com" target="_blank">eric@trueblade.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 1/19/2014 10:40 PM, Bruce Leban wrote:<br>
> I think the odds of Python getting<br>
><br>
> from __future__ import pony<br>
><br>
> are slightly higher than there being a Python 2.8. I assume by "pony"<br>
> you really mean what I'd like to have:<br>
><br>
> from __future__ import everything<br>
><br>
> since my goal is to write Python 3 compatible code even though I'm<br>
> temporarily stuck with Python 2 due to stack issues. The __future__<br>
> imports makes it easier to write forward compatible code. As it is, I<br>
> have to list the individual imports in every file and I also add:<br>
><br>
> range = xrange<br>
<br>
</div>It's unfortunate we didn't add this (and all other changed builtins) to<br>
future_builtins in 2.7.<br>
<span class="HOEnZb"><font color="#888888"><br>
Eric.<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</div></div></blockquote></div><br></div>