[New-bugs-announce] [issue24791] *args regression
Ben Longbons
report at bugs.python.org
Wed Aug 5 05:42:24 CEST 2015
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` uses `'*' test` but the 3.5 grammar uses `'*' expr`. This is likely an oversight due to the PEP 448 changes; the fix should most likely be applied to the new `display`s as well as fixing the regression.
***
Thanks to zware on IRC for actually testing this for me, since I don't have a runnable python3.5, just docs.
----------
components: Interpreter Core
messages: 248014
nosy: o11c
priority: normal
severity: normal
status: open
title: *args regression
versions: Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24791>
_______________________________________
More information about the New-bugs-announce
mailing list