[IPython-user] from __future__ import division

Olivier Verdier zelbier@gmail....
Wed Apr 2 14:58:16 CDT 2008

Aaargh! It doesn't work on my version (svn rev r2408). Thanks a lot
anyway. I will try to get a new version of IPython installed in the

Do you folk think that there could be another possibility to fix this
on older versions of IPython?


== Olivier

On 02/04/2008, Ville M. Vainio <vivainio@gmail.com> wrote:
> On Wed, Apr 2, 2008 at 8:52 PM, Olivier Verdier <zelbier@gmail.com> wrote:
>  >  I am teaching python for beginners and I would really like to avoid
>  >  the python division problem. But no matter how I try I cannot for the
>  >  life of me get "from __future__ import division" being automatically
>  >  executed at the launching of Ipython.
>  >
>  >  Has anyone succeed with this? Is there a good way to do it?
> Yes. Add the following line to ipy_user_conf.py (provided that you are
>  running the dev version from bzr):
>  o.autoexec.append('from __future__ import division')
>  --
>  Ville M. Vainio - vivainio.googlepages.com
>  blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'

More information about the IPython-user mailing list