[IPython-dev] autocall print() bug finally fixed!

Fernando Perez fperez.net@gmail....
Thu Apr 22 22:53:27 CDT 2010


Hi everyone,

I just wanted to mention this because this bug is *extremely*
annoying; thanks to Robert's tip, we've been able to finally close the
bug where autocall would misfire on print statements for python 2.6
and newer like this:

In [1]: print 1, 2, 3
------> print(1, 2, 3)
(1, 2, 3)

The full report is here: https://bugs.launchpad.net/ipython/+bug/414967

now things work OK:

In [1]: print 1,2,3
1 2 3

In [2]: from __future__ import print_function

In [3]: print 1,2,3
------> print(1,2,3)
1 2 3


You do need to be running from bzr, but I did apply the fix both to
0.10.1 and trunk, so this particularly annoying problem is finally
gone.

Cheers,

f


More information about the IPython-dev mailing list