Message47
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
>>>
|
|
Date |
User |
Action |
Args |
2008-02-20 17:16:38 | admin | link | issue222805 messages |
2008-02-20 17:16:38 | admin | create | |
|