Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-45764: improve error message when missing '(' after 'def' #29484

Merged
merged 2 commits into from Nov 9, 2021

Conversation

@cfbolz
Copy link
Contributor

@cfbolz cfbolz commented Nov 9, 2021

to achieve this, change the grammar to expect the '(' token after 'def' NAME.

https://bugs.python.org/issue45764

Automerge-Triggered-By: GH:pablogsal

^
SyntaxError: expected '('

#.. section: Library #.. section: Documentation #.. section: Tests #..
Copy link
Member

@pablogsal pablogsal Nov 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove the commented part of the news entry? Somehow it got I included in the file?

Loading

Copy link
Contributor Author

@cfbolz cfbolz Nov 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Loading

@pablogsal
Copy link
Member

@pablogsal pablogsal commented Nov 9, 2021

@cfbolz Fantastic! Thanks a lot for the PR!

Loading

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Nov 9, 2021

@cfbolz: Status check is done, and it's a failure .

Loading

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Nov 9, 2021

@cfbolz: Status check is done, and it's a success .

Loading

@cfbolz
Copy link
Contributor Author

@cfbolz cfbolz commented Nov 9, 2021

the windows 64 error seems unrelated, I think?

Loading

@pablogsal
Copy link
Member

@pablogsal pablogsal commented Nov 9, 2021

the windows 64 error seems unrelated, I think?

Yeah, is a known race condition that is very annoying and we still have not found a good way to fix it. @ambv maybe could take a look again as this is everywhere in the CI

Loading

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Nov 9, 2021

@cfbolz: Status check is done, and it's a success .

Loading

@miss-islington miss-islington merged commit 2819e98 into python:main Nov 9, 2021
12 checks passed
Loading
thatbirdguythatuknownot added a commit to thatbirdguythatuknownot/cpython that referenced this issue Nov 9, 2021
thatbirdguythatuknownot added a commit to thatbirdguythatuknownot/cpython that referenced this issue Nov 9, 2021
thatbirdguythatuknownot added a commit to thatbirdguythatuknownot/cpython that referenced this issue Nov 9, 2021
thatbirdguythatuknownot added a commit to thatbirdguythatuknownot/cpython that referenced this issue Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants