This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author o11c
Recipients o11c
Date 2015-08-05.03:42:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1438746144.94.0.696860700578.issue24791@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-08-05 03:42:25o11csetrecipients: + o11c
2015-08-05 03:42:24o11csetmessageid: <1438746144.94.0.696860700578.issue24791@psf.upfronthosting.co.za>
2015-08-05 03:42:24o11clinkissue24791 messages
2015-08-05 03:42:23o11ccreate