[IPython-user] from __future__ import division
cwmoad at gmail.com
Fri Dec 16 11:03:32 CST 2005
Set PYTHONSTARTUP to a file like '/home/username/.pythonrc' and put
the import in there. Python will execute this file on startup. Could
possibly break things though.....
On 12/16/05, Harri Pasanen <hpasanen at gmail.com> wrote:
> I've been looking for a way to automatically enable 3/4=0.75 style division
> in ipython, but
> so far no luck.
> execute from __future__ import division
> in ipythonrc does not do it, and to me it it looks currently impossible to
> do in general from pure python.
> Am I missing something, is there a way?
> IPython-user mailing list
> IPython-user at scipy.net
More information about the IPython-user