| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
test_fstring fails, will dig |
Sorry, something went wrong.
…y-miryanov/cpython into pythongh-129515-ifexp-syntax-error
There was a problem hiding this comment.
Left some new comments
Sorry, something went wrong.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request. |
Sorry, something went wrong.
- also reword error messages - move tests to test_syntax - update whatsnew and news
|
I have made the requested changes; please review again |
Sorry, something went wrong.
|
Thanks for making the requested changes! @pablogsal: please review the changes made to this pull request. |
Sorry, something went wrong.
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
There was a problem hiding this comment.
Ah, this looks MUCH better. Really well done @sergey-miryanov! 👍
Sorry, something went wrong.
…e-129515.3L3vmo.rst Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
…y-miryanov/cpython into pythongh-129515-ifexp-syntax-error
|
Thank you all for your review! I made the suggested changes, and it is ready now. |
Sorry, something went wrong.
|
Excellent job @sergey-miryanov! Thanks for your contribution 👌 |
Sorry, something went wrong.
|
Thanks! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Along the suggestion from the original issue, I have added the following rules and messages:
The following expressions will be handled by a=disjunction 'if' b=disjunction 'else' c=invalid_ifexp_orelse_stmt and generate the message "Syntax Error: statement given where 'orelse' expression required" instead of just "Syntax Error: invalid syntax":
1 if True else pass 1 if True else return 1 if True else raise Exception('test') 1 if True else del smth 1 if True else yield 2 1 if True else assert False 1 if True else break 1 if True else continueThe following expressions will be handled by a=invalid_ifexp_body_stmt 'if' b=disjunction 'else' c=expression and generate the message "Syntax Error: statement given where 'body' expression required":
The followingexpressions will be handled by a=invalid_ifexp_body_stmt 'if' b=disjunction 'else' c=invalid_ifexp_orelse_stmt and generate the message "Syntax Error: statement given where 'body' expression required":