[IPython-user] %paste and integer division

butterw@gmai... butterw@gmai...
Sun Mar 14 14:34:14 CDT 2010

I'm configured to get rid of the old integer division, but %paste doesn't  
take this into account, which is a pain.

ipy_user_conf.py :
# for sane integer division that converts to float (1/2 == 0.5)
o.autoexec.append('from __future__ import division')

Turning autocall off doesn't make any difference here. Not that I would  
want to turn autocall off.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20100314/4fd7d72f/attachment.html 

More information about the IPython-user mailing list