Skip to content

fix: cpython ast fixes#3

Open
Boris (dzodkin33) wants to merge 1 commit into
elide-25.1.xfrom
fix/cpython-ast-fixes
Open

fix: cpython ast fixes#3
Boris (dzodkin33) wants to merge 1 commit into
elide-25.1.xfrom
fix/cpython-ast-fixes

Conversation

@dzodkin33

Copy link
Copy Markdown
Member

Fixes: https://github.com/elide-dev/WHIPLASH/issues/1211

  1. ast.parse(..., feature_version=(3, 10)) issue

Incorrect translation in ACTION_MAPPINGS table.

Solution: Correct the erroneous tuple and regenerate.

  1. ast.literal_eval() issue

When constructing numbers in [AbstractParser.number_token()], the integer values are stored as long but can overflow into BigInteger where no-digit checks are performed.

Solution: Implement digit checks, check CPython's wording for this type of error.

  1. del ast.AST._fields issue

Its parent class is marked as immutable.

Solution: Mark ast.Ast as an exception to this rule, add null guards to init and new.

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