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

Make MacroPy3 compatible with Python 3.11 #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tcmulcahy
Copy link

I made changes to comply with the following runtime changes.

In Python 3.8+, lineno/col_offset became required, as part of the adoption of the peg_parser.

In Python 3.8+, arguments has a new parameter - posonlyargs.

The value of Subscript.slice was changed from Index to expr in Python 3.9 as part of the "Parental Scope References in Named Expressions" proposal (PEP 572).

With these changes tests don't actually pass, but they do fail, which is an improvement. Before, we couldn't even run the tests. I'm not sure to what degree these failures are the results of real problems vs just needing to fix up the tests in response to runtime changes.

I made changes to comply with the following runtime changes.

In Python 3.8+, lineno/col_offset became required, as part of the
adoption of the peg_parser.

In Python 3.8+, arguments has a new parameter - posonlyargs.

The value of Subscript.slice was changed from Index to expr in Python
3.9 as part of the "Parental Scope References in Named Expressions"
proposal (PEP 572).
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.

1 participant