[IPython-dev] Fwd: Multi-line history problems in ipython (mac osx)
Mon Jan 14 18:27:17 CST 2008
Forwarding as a re-send because the cut and paste missed 'i' at the
beginning of 'ipython'.
---------- Forwarded message ----------
From: Michael VanLandingham <firstname.lastname@example.org>
Date: Jan 14, 2008 4:01 PM
Subject: Multi-line history problems in ipython (mac osx)
To: email@example.com, firstname.lastname@example.org
Perhaps this has been covered elsewhere, but I'm seeing problems in iPython
(0.8.2 , 0.8.3 r2919) on OS X 10.5.1 when using the up arrow to do history
completion after multi-line input (a function def, for example).
#define a silly function or any multi-line statement:
In : def foo(s=None):
...: if s:
...: print 'foo got "%s"' % s
...: print "foo got nuthin'"
#play with it:
In : foo('bar')
foo got "bar"
In : foo()
foo got nuthin'
#When I press the arrow-up key a couple times to edit the function def:
if s: def foo(s=None):
print 'foo got "%s"' % s
Notice how the 'def foo(s=None)' is on the same line as the 'if s:'? And
once it does this, _all_ arrow-ups are out in the middle of the console and
well, generally messed up.
You can still use this if you're careful, but it's sketchy.
Is this a known issue? Someone else recently mentioned to me that they were
seeing this as well.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev