[IPython-dev] Re: Question about IPython behaviour

Robert Kern rkern at ucsd.edu
Tue Jul 26 13:41:44 EDT 2005

Tzanko Matev wrote:
> Hi all,
> The prefilter() method turns strings consisting only of whitespace to
> empty strings. This means that in IPython I cannot write the following
> code:
> In[1]: if 1==1:
>    ... ___print 1
>    ... ___   
>    ... ___print2
>    ...
> (here I have replaced spaces with underscore). prefilter() will turn the
> third line into an empty string and the interpreter will decide that the
> block ends there. This differs from the behaviour of the standard
> interpreter where the code would run as expected.  So is this a bug or a
> feature? I think that empty lines should be allowed in the GUI.

So code to a different interface like the one in notabene.executor. The 
GUI decides when the input is complete, sends it whole to the 
interpreter, and gets a response back.

Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter

More information about the IPython-dev mailing list