[IPython-user] from __future__ import division
Ville M. Vainio
Wed Apr 2 12:59:14 CDT 2008
On Wed, Apr 2, 2008 at 8:52 PM, Olivier Verdier <firstname.lastname@example.org> 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