Skip to content

Update the syntax to Python 3.10 #254

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

Merged
merged 1 commit into from
Oct 19, 2022
Merged

Update the syntax to Python 3.10 #254

merged 1 commit into from
Oct 19, 2022

Conversation

vpetrovykh
Copy link
Member

Update the built-ins, dunders and add match and case keywords.

@vpetrovykh vpetrovykh requested a review from 1st1 October 18, 2022 13:23
@@ -0,0 +1,59 @@
match point:
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a test with a more complicated expression in match?

Copy link
Member

Choose a reason for hiding this comment

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

Also things like

case ["drop", *objects]:

I suggest to go though the examples here https://peps.python.org/pep-0636/

Copy link
Member Author

Choose a reason for hiding this comment

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

I've added a more complex expression for match and some more variety for cases.

Generally the expressions there are not special for this grammar, so I don't expect them to mess things up. The only thing that matters is that the expressions start with something valid and not, say, ^ or %.

@vpetrovykh vpetrovykh force-pushed the latest branch 4 times, most recently from 88ad425 to 6344093 Compare October 19, 2022 18:32
Update the built-ins, dunders and add `match` and `case` keywords.
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.

2 participants