[IPython-user] from __future__ import division
Charlie Moad
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:
> Hi,
>
> 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?
>
> -Harri
>
> _______________________________________________
> IPython-user mailing list
> IPython-user at scipy.net
> http://scipy.net/mailman/listinfo/ipython-user
>
>
>
More information about the IPython-user
mailing list