[IPython-dev] Multi-line history entries

Walter Dörwald walter at livinglogic.de
Thu Jul 27 04:37:54 CDT 2006


Ville Vainio wrote:
> On 7/26/06, Walter Dörwald <walter at livinglogic.de> wrote:
> 
>> Now that this is checked in I tried it out. This is what happens:
>>
>> In [1]: for i in xrange(4):
>>    ...:     print i
>>    ...:
>>    ...:
>> 0
>> 1
>> 2
>> 3
>> In [2]: for i in xrange(4):^J    print i
> 
> Perhaps this is a problem with your readline version;

Maybe. I tried it on Debian Sarge.

It happens on Mac OS 10.4.7 too, though.

> it worked ok
> (i.e. linefeeds were linefeeds) on my home machine (ubuntu dapper).
> Anyone else bother giving it a try?
> 
> Does stuff w/o autoindenting (e.g. \ line continuation) work ok?

It looks the same (i.e. one line with ^J).

Servus,
   Walter


More information about the IPython-dev mailing list