[Idle-dev] Re: [Python-Help] python 2.2

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Tue, 12 Feb 2002 14:39:34 -0800 (PST)


On Tue, 12 Feb 2002, Skip Montanaro wrote:

>     Tom> How do I get IDLE to show the "..." as the secondary prompt instead
>     Tom> of nothing?
> 
> Good question.  I don't use IDLE, so I poked around a little.  I
> couldn't see anywhere it was gobbling sys.ps2, but it sure seems to be
> doing that. Setting it explicitly seems to have no effect either.  
> Maybe one of the other helpers has encountered this before.


I took a look at the source code; the PyShell.py file that defines how the
interpreter works in IDLE doesn't appear use sys.ps2.

I believe that IDLE ignores sys.ps2 because it really complicates matters
in the GUI, especially when one can press backspace to get back to the
original line.  It also appears that the auto-indent feature might also
suffer some problems if we're not careful.  In short, getting sys.ps2 to
work seems like a somewhat difficult GUI problem with lots of
interactions.

Let me forward this off to the IDLE-dev mailing list as well; perhaps it's
not as bad as I think it might be... *grin*