Public bug reported:

Binary package hint: ipython

to reproduce. enter the following into ipython.

In [1]: for x in range(4):
   ...:     print x
   ...:
   ...:
0
1
2
3

now use the up arrow to retrieve that loop from the history and execute
it again...

In [2]: for x in range(4):
    print x
------> print(x)
------------------------------------------------------------
IndentationError: expected an indented block (<ipython console>, line 2)

i can reproduce this on 2 different 9.04 installs, one clean, and one
upgraded from 8.10, it looks like the culprit is some kind of 2.6->3.0
compatibility hack (print becomes a function call).

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: ipython 0.9.1-1
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: ipython
Uname: Linux 2.6.28-11-generic i686

** Affects: ipython (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386

-- 
IPython history is broken. IndentationErrors everywhere.
https://bugs.launchpad.net/bugs/379135
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to