Roundup Robot added the comment:
New changeset 20e0906a808e by Terry Jan Reedy in branch '3.5':
Issue #24791: Escape rst markup char in NEWS entry to avoid Sphinx warning.
https://hg.python.org/cpython/rev/20e0906a808e
--
___
Python tracker
Yury Selivanov added the comment:
Actually, I think `star_expr` will probably go away entirely.
I'm not so concerned with supporting [*[] or []] stuff, but rather fixing the
immediate regression in 3.5.0. I'd keep the patch size to the minimum.
--
Roundup Robot added the comment:
New changeset e4cb64628673 by Yury Selivanov in branch '3.5':
Issue #24791: Fix grammar regression for call syntax: 'g(*a or b)'.
https://hg.python.org/cpython/rev/e4cb64628673
New changeset 4c89dd5199e5 by Yury Selivanov in branch 'default':
Merge 3.5 (issue
Roundup Robot added the comment:
New changeset 40c391d12741 by Yury Selivanov in branch '3.5':
Issue #24791: More tests in test_parser
https://hg.python.org/cpython/rev/40c391d12741
New changeset a572137b4f05 by Yury Selivanov in branch 'default':
Merge 3.5 (issue #24791; more tests in
Changes by Yury Selivanov yseliva...@gmail.com:
--
resolution: - fixed
stage: needs patch - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24791
___
Roundup Robot added the comment:
New changeset 3c170f68407f by Zachary Ware in branch '3.4':
Issue #24791: Add tests for things that regressed with PEP 448
https://hg.python.org/cpython/rev/3c170f68407f
--
nosy: +python-dev
___
Python tracker
Changes by Zachary Ware zachary.w...@gmail.com:
--
keywords: +3.4regression
nosy: +benjamin.peterson, yselivanov, zach.ware
priority: normal - release blocker
stage: - needs patch
type: - behavior
versions: +Python 3.6
___
Python tracker
Zachary Ware added the comment:
Test committed on 3.4; I'm not comfortable enough with the grammar to actually
fix the issue (the obvious change of `star_expr` = `'*' test` isn't enough, I
tried :)).
--
___
Python tracker rep...@bugs.python.org
New submission from Ben Longbons:
The following code is allowed by the grammar of Python 3.4, but not Python 3.5:
`def f(): g(*a or b)`
where unary `*` has the lowest precedence, i.e. it is equivalent to:
`def f(): g(*(a or b))`
The cause of the regression that the 3.4 grammar for `arglist`
Ben Longbons added the comment:
Related: bug 24176 fixed this for the `**` case.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24791
___
___
Yury Selivanov added the comment:
The attached patch should fix that. Please review.
--
keywords: +patch
Added file: http://bugs.python.org/file40128/issue24791.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24791
Changes by Yury Selivanov yseliva...@gmail.com:
--
nosy: +larry, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24791
___
___
Ben Longbons added the comment:
Also consider:
*() or (), *() or ()
[*() or (), *() or ()]
{*() or (), *() or ()}
{**{} or {}, **{} or {}}
Note that the second-or-later argument is a separate part of the grammar so
that's why I wrote it twice.
Actually, I think `star_expr` will probably go
13 matches
Mail list logo