ipython/ipython — pull request #2096 by bfroehle (2012-07-04 22:04:02+00:00)
Title: embed(): Default to the future compiler flags of the calling frame.

As discussed on the mailing list by Joon Ro:

> 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 attached pull request changes the behavior of embed to, by default, use the future compiler flags from the calling frame.