Message10709
Also true of the Jython 2.5 branch (which we would be unlikely to fix).
For both Jython 2.5 branch and 2.7, triple quotes are simply ignored by the Jython console. To support interactive completions over multiple lines, the console uses a special grammar (and I believe a special set of tokenization rules, hence this problem), when compared to directly compiling files.
You can see this behavior at this point in Jython 2.7:
>>> """
>>> this is a
vs what should be the case:
>>> """
... this is a
No interactive completion allowed - the triple quotes are simply ignored. But context matters; this assignment works fine in Jython 2.7:
>>> x = """Jython should not ignore this content
...
... """
>>> x
'Jython should not ignore this content\n\n' |
|
Date |
User |
Action |
Args |
2016-02-03 20:11:31 | zyasoft | set | messageid: <1454530291.79.0.787095274583.issue2459@psf.upfronthosting.co.za> |
2016-02-03 20:11:31 | zyasoft | set | recipients:
+ zyasoft, fwierzbicki, jsaiz |
2016-02-03 20:11:31 | zyasoft | link | issue2459 messages |
2016-02-03 20:11:31 | zyasoft | create | |
|