Message47

Author bckfnn
Recipients
Date 2000-11-18.19:04:04
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The following kinds of multi-line statements work if written in
an imported module:

s = (
'Hello, world.'
)

s = \
'Hello, world.'

i = (
3+ 4
}

i = \
3 + 4

All of them fail in the JPython interpreter as soon as the first line is typed
in.

Is multi-line functionality supposed to be supported in the interactive
interpreter?

JPython 1.1beta2 on java1.2.1
Copyright (C) 1997-1999 Corporation for National Research Initiatives
>>>
>>> s = (
Traceback (innermost last):
  (no code object) at line 0
  File "<console>", line 1
SyntaxError: invalid syntax
>>> s = \
Traceback (innermost last):
  (no code object) at line 0
  File "<console>", line 1
SyntaxError: invalid syntax
>>>
History
Date User Action Args
2008-02-20 17:16:38adminlinkissue222805 messages
2008-02-20 17:16:38admincreate