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

Aaron Meurer asmeurer at gmail.com
Sun Aug 31 14:07:59 EDT 2014


http://mail.scipy.org/pipermail/ipython-dev/2012-April/008956.html


On Sun, Aug 31, 2014 at 11:51 AM, Aaron Meurer <asmeurer at gmail.com> wrote:

> 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
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140831/f39834ea/attachment.html>


More information about the IPython-dev mailing list