On Wed, Sep 19, 2012 at 10:01 PM, jlist9 <jlist9@gmail.com> wrote:
Hi all,

I am having this strange problem in REPL. I can type a list and it's fine. If I
type a dictionary in the REPL, it keeps printing out the "..." lines as if it's
still waiting for more input. To make sure, I reinstalled Jython 2.5.3 and still
has the problem. Any idea why this is happening? I'm using 32bit 1.6 JRE on
64bit Windows 7. Not sure if this is a problem.

Jython 2.5.3 (2.5:c56500f08d34+, Aug 13 2012, 14:48:36)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_31
Type "help", "copyright", "credits" or "license" for more information.
>>> [1, 2, 3]
[1, 2, 3]
>>> {'a':1}
...
...
...
This is presenting like a REPL parser issue - but I'm unable to reproduce it (though I'm not on Windows) - there is at least one bug that looks a bit like this one, parsing triple quoted strings in the REPL can look like the above:


>>> x = """ foo """ and some junk on the end
... 
... 

And it can't be recovered -- the REPL tries to parse up to two times. First it tries to parse the line as if it where complete. If that fails it tries a partial parse - which is my attempt to match parts of expressions as CPython does in its REPL. I don't know how {'a':1} is failing on the first pass - very odd. Would you mind creating a new bug with the specifics of your environment? I'll have to get a windows VM up to test it I guess.

-Frank