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

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@pablogsal
Copy link
Member

@cfbolz Fantastic! Thanks a lot for the PR!

@miss-islington
Copy link
Contributor

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

@miss-islington
Copy link
Contributor

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

@cfbolz
Copy link
Contributor Author

cfbolz commented Nov 9, 2021

the windows 64 error seems unrelated, I think?

@pablogsal
Copy link
Member

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

@miss-islington
Copy link
Contributor

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

@miss-islington miss-islington merged commit 2819e98 into python:main Nov 9, 2021
thatbirdguythatuknownot added a commit to thatbirdguythatuknownot/cpython that referenced this pull request Nov 9, 2021
thatbirdguythatuknownot added a commit to thatbirdguythatuknownot/cpython that referenced this pull request Nov 9, 2021
thatbirdguythatuknownot added a commit to thatbirdguythatuknownot/cpython that referenced this pull request Nov 9, 2021
thatbirdguythatuknownot added a commit to thatbirdguythatuknownot/cpython that referenced this pull request Nov 9, 2021
remykarem pushed a commit to remykarem/cpython that referenced this pull request Dec 7, 2021
…GH-29484)

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

Automerge-Triggered-By: GH:pablogsal
remykarem pushed a commit to remykarem/cpython that referenced this pull request Jan 30, 2022
…GH-29484)

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

Automerge-Triggered-By: GH:pablogsal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants