[IPython-dev] Where should __future__ statements affect the interactive environment.

Fernando Perez fperez.net at gmail.com
Mon Apr 23 06:44:11 EDT 2012

On Mon, Apr 23, 2012 at 3:25 AM, Thomas Kluyver <takowl at gmail.com> wrote:
> On the other hand, %run (without -i) works a bit like doing `from foo
> import *`, in which case you don't get semantic changes from
> __future__ statements in foo. I'm inclined to agree with you that I'd
> expect __future__ statements in %run to affect the interactive
> environment, but I don't think it's entirely clear cut.

I was thinking more about what the more natural workflow would be,
since we pitch %run more closely related to "run a script as if you
had typed all that interactively" than "a shorthand for 'import *'".
But you are right, one could think of it either way...


More information about the IPython-dev mailing list