<div>
<div>There is a somewhat hidden way to reset the the compiler flags, but definitely not for everyday use:</div><div><br></div><div>In [7]: from __future__ import division</div><div><br></div><div>In [8]: 1/2</div><div>Out[8]: 0.5</div><div><br></div><div>In [9]: get_ipython().compile.reset_compiler_flags()</div><div><br></div><div>In [10]: 1/2</div><div>Out[10]: 0</div>
</div>
<div></div>
<p style="color: #A0A0A8;">On Wednesday, July 4, 2012 at 10:51 AM, Aaron Meurer wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div>One thing that's worth pointing out: there's no way to "un-import"</div><div>future flags (unless I missed it). So once you have future division,</div><div>you're stuck with it.</div><div><br></div><div>Aaron Meurer</div><div><br></div><div>On Jul 4, 2012, at 11:38 AM, Thomas Kluyver <<a href="mailto:takowl@gmail.com">takowl@gmail.com</a>> wrote:</div><div><br></div><blockquote type="cite"><div><div>On 4 July 2012 18:26, Carl Smith <<a href="mailto:carl.input@gmail.com">carl.input@gmail.com</a>> wrote:</div><blockquote type="cite"><div><div>Maybe a configurable or something, so the user can set the way it works, and</div><div>just document it?? I'm not really sure.</div></div></blockquote><div><br></div><div>We try not to add more configuration unless it looks like there's a</div><div>real need to have both options:</div><div>- If it's configurable, there's an extra maintenance burden of making</div><div>sure each option continues working in different scenarios.</div><div>- Most users will never go looking for an obscure config option, so it</div><div>doesn't relieve us from the burden of picking out a sensible default.</div><div><br></div><div>In this case, I'm leaning towards the view that embedded IPython</div><div>*should* inherit the future flags, without any config option. But it</div><div>warrants some discussion.</div><div><br></div><div>Thomas</div><div>_______________________________________________</div><div>IPython-dev mailing list</div><div><a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a></div><div><a href="http://mail.scipy.org/mailman/listinfo/ipython-dev">http://mail.scipy.org/mailman/listinfo/ipython-dev</a></div></div></blockquote><div>_______________________________________________</div><div>IPython-dev mailing list</div><div><a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a></div><div><a href="http://mail.scipy.org/mailman/listinfo/ipython-dev">http://mail.scipy.org/mailman/listinfo/ipython-dev</a></div></div></div></span>
</blockquote>
<div>
<br>
</div>