[IPython-dev] future division in embedded ipython
Wed Jul 4 11:59:38 CDT 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" <email@example.com> wrote:
> On 4 July 2012 14:12, Joon Ro <firstname.lastname@example.org> 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
> > 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:
> IPython-dev mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev