Title: Parser bug with unparenthesized genexp with star-args
Type: behaviour Severity: normal
Components: Core Versions: Jython 2.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, ztane, zyasoft
Priority: Keywords:

Created on 2015-09-12.13:42:16 by ztane, last changed 2016-02-08.15:57:16 by zyasoft.

msg10250 (view) Author: Antti Haapala (ztane) Date: 2015-09-12.13:42:15
The parser issue from CPython was also copied over to Jython; In Jython it appears so that 

    f(1 for x in [1], *a)

is allowed, even though not according to documented grammar. 

More interestingly 

    f(*a, 1 for x in [1])

correctly reports an error if it is in a file, but makes the parser go funny in interactive interpreter.
msg10728 (view) Author: Jim Baker (zyasoft) Date: 2016-02-08.15:57:16
We actually have two parsers, one for the console and one for normal compilation, due to the need to support interactive completions. Having two has been a source of many problems!
Date User Action Args
2016-02-08 15:57:16zyasoftsetnosy: + fwierzbicki, zyasoft
messages: + msg10728
2015-09-12 13:42:29ztanesettype: behaviour
2015-09-12 13:42:16ztanecreate