Skip to content

Change to raise SyntaxError for the generator without parenthesized - #3942

Closed
key262yek wants to merge 4 commits into
RustPython:mainfrom
key262yek:update-invalid_argument
Closed

key262yek wants to merge 4 commits into
RustPython:mainfrom
key262yek:update-invalid_argument

Conversation

@key262yek

Copy link
Copy Markdown
Contributor

@key262yek
key262yek force-pushed the update-invalid_argument branch 3 times, most recently from 4768997 to e174d2d Compare July 21, 2022 08:44
@key262yek key262yek changed the title Change to raise SyntaxError for the generator without parenthsized Change to raise SyntaxError for the generator without parenthesized Jul 21, 2022
@youknowone youknowone added the z-ca-2022 Tag to track contrubution-academy 2022 label Jul 23, 2022
@key262yek
key262yek force-pushed the update-invalid_argument branch from f89b428 to aa1a946 Compare July 27, 2022 07:23
@key262yek
key262yek force-pushed the update-invalid_argument branch from aa1a946 to 9207c7a Compare September 21, 2022 12:21
@DimitrisJim

DimitrisJim commented Feb 23, 2023 •

Copy link
Copy Markdown
Member

I don't know how easy the conflicts are going to be to resolve (some recent prs to the grammar and the parser cover some of these changes). The parenthesized genexprs aren't as far as I can tell (the test in main is still marked as failing) so there's still something to be solved here.

@DimitrisJim

Copy link
Copy Markdown
Member

Should be moved to Parser, test_genexps is still failing so this PR is still useful.

@youknowone

Copy link
Copy Markdown
Member

Thank you for working on this, @key262yek! This issue has since been fixed in the current codebase — unparenthesized generator expressions now correctly raise SyntaxError. Closing as resolved.

@youknowone youknowone closed this Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

z-ca-2022 Tag to track contrubution-academy 2022

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generator expression without parenthesis does not raise SyntaxError

3 participants