[IPython-dev] future division in embedded ipython
Carl Smith
carl.input at gmail.com
Wed Jul 4 12:59:38 EDT 2012
I had trouble with this a while back and assumed it was a bug in IPython,
but forgot about it.
It'd be nice to have some way of making this work as you presume it will.
Even if it's caused by a misunderstanding of Python by the user, it's still
just buggy from a UX perspective.
On Jul 4, 2012 3:39 PM, "Thomas Kluyver" <takowl at gmail.com> wrote:
> On 4 July 2012 14:12, Joon Ro <joonpyro at gmail.com> wrote:
> > I'm using ipython 0.13. I just found that even though my main script has
> > from __future__ import division, the embedded ipython session I still
> get
> > 1/2 = 0
> > It has caused me some confusion and I was wondering if this is a bug.
>
> The effect of future statements isn't currently carried across - they
> don't work the same way as variables. It's not exactly a bug, but
> maybe it's something we want to change.
>
> See also discussion here on future statements in startup files:
> https://github.com/ipython/ipython/pull/950#issuecomment-4993045
>
> Thomas
> _______________________________________________
> 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/20120704/7a5da231/attachment.html>
More information about the IPython-dev
mailing list