Line entry edge case error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IPython |
Confirmed
|
Low
|
Ville M. Vainio | ||
ipython (Debian) |
Fix Released
|
Unknown
|
Bug Description
This bug came in via bugs.debian.org and I am forwarding it to you as it seems to be an IPython issue. The Debian bug in question is http://
Could you please have a look at the bug report and comment on it? This problem seems to also affect IPython 0.9.1 which I am currently packaging for Debian.
The original problem description can be found below.
Regards,
Stephan
-- original problem description --
Interactively entering the following, allowing ipython
to automatically provide indentation:
def a(b):
b()
return True
causes an indentation error (as expected). I press "up"
to retrieve the history, and go back to add in the
additional space before "return". Pressing enter causes:
NameError: name 'e' is not defined
Weirder still: if True is replaced with 'q' and some value
is assigned to the variable q, ipython returns that value
as the next "out" result. Find transcript below.
The "call" b() appears to not matter (it can be replaced
with other code, for instance "b=b").
Changed in ipython: | |
status: | Unknown → Confirmed |
Changed in ipython (Debian): | |
status: | Confirmed → Fix Released |
Reproduced. Seems like readline only gets "e" from the input line
'return True' when you edit it. I'll investigate.
On Thu, Oct 30, 2008 at 8:37 AM, Stephan Peijnik <email address hidden> wrote: bugs.debian. org/473018.
> Public bug reported:
>
> This bug came in via bugs.debian.org and I am forwarding it to you as it seems to be an IPython issue. The Debian bug in question is http://
> Could you please have a look at the bug report and comment on it? This problem seems to also affect IPython 0.9.1 which I am currently packaging for Debian.
-- tinyurl. com/vainio
Ville M. Vainio
http://