Message405187
According to the current documentation, I believe there is an error in
list_display, set_display and dict_display.
According to list display, this is a valid expression
[* l1 ^ l2]
parsed as
list_display:
"["
starred_list:
starred_item:
"*"
or_expr:
xor_expr:
xor_expr: "l1"
"^"
and_expr: "l2"
"]"
I add the full derivation from and_expr to l2 at the end of the report, it's not important for this topic.
The same issue is present for set. For dictionary it is also present, but instead the error is in key_datum.
I have no idea what would be the proper correction.
Indeed [*l1+l2] is valid (in 3.9) at least. So it's not like the element after a star is restricted to be an atom.
At the very least, I believe it should be clearly indicated that, contrary to what the name indicates, "or_expr" do not mean that we accept any or, nor any expression. It just mean that
*some_complex_expression
is interpreted as
* (some_complex_expression)
and that it is valid iff some_complex_expression is valid
shift_expr:
a_expr:
m_expr:
power:
primary:
atom:
identifier:
"l2" |
|
Date |
User |
Action |
Args |
2021-10-28 14:42:22 | Arthur-Milchior | set | recipients:
+ Arthur-Milchior, docs@python |
2021-10-28 14:42:22 | Arthur-Milchior | set | messageid: <1635432142.42.0.274045830946.issue45646@roundup.psfhosted.org> |
2021-10-28 14:42:22 | Arthur-Milchior | link | issue45646 messages |
2021-10-28 14:42:22 | Arthur-Milchior | create | |
|