[IPython-dev] __future__ statements in ipython -i test.py

Aaron Meurer asmeurer at gmail.com
Sun Aug 31 12:51:15 EDT 2014


I believe this has been discussed before on this list at least in the
context of %run.

Aaron Meurer

> On Aug 30, 2014, at 11:32 AM, Thomas Ballinger <tom at hackerschool.com> wrote:
>
> While addressing a bug in bpython, I found that (terminal) ipython and python differ in behavior when a file test.py contains
>
>     from __future__ import division
>
> and I run (i)python -i test.py and then enter 1/2. The behavior is the same for
>
>     $ (i)python -i -c 'from __future__ import division'
>
> and then doing some division.
>
> Before I look too far into if fixing the problem in bpython is possible, I wanted to see if I could crib off of your collective experience with this. Is this behavior difficult to implement, not actually desirable, or just not something someone has gotten around to? After Thomas's excellent answers last time to my encoding questions I tend to think you all have dealt with any problem I face a few times already and thought about it more than I have. :)
>
> Tom
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev



More information about the IPython-dev mailing list