Skip to content

fix(python): report excessive attribute nesting as syntax error - #81

Merged
jagalindo merged 1 commit into
Universal-Variability-Language:conformance-fixesfrom
joszamama:fix/python-attribute-nesting
Nov 18, 2026
Merged

jagalindo merged 1 commit into
Universal-Variability-Language:conformance-fixesfrom
joszamama:fix/python-attribute-nesting

Conversation

@joszamama

@joszamama joszamama commented Nov 18, 2026 •

Copy link
Copy Markdown

The Python lexer now reports attribute nesting beyond 64 levels as a syntax error, preventing a raw RecursionError in consumers such as FlamaPy. Adds a regression model and boundary tests.

Fixes #77.

Tests: 89 Python parser tests pass on Python 3.11 and 3.12; FlamaPy 2.9.0dev0 reports its normal FlamaException for the 300-level reproducer.

@joszamama
joszamama force-pushed the fix/python-attribute-nesting branch from c23477a to 7604eac Compare November 18, 2026 14:00
@jagalindo
jagalindo changed the base branch from develop to conformance-fixes November 18, 2026 20:38
@jagalindo
jagalindo merged commit fa0bf36 into Universal-Variability-Language:conformance-fixes Nov 18, 2026
@jagalindo

jagalindo commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Thanks for this, and for the detailed reports behind it.

Because of the large number of proposals that arrived together, we have created a dedicated branch, conformance-fixes, to collect them. This PR was retargeted to that branch and merged there, together with #81, #82, #83 and #84.

You can use conformance-fixes to test, and to open PRs with further changes and with any other bugs you find. The grammar tests run on the branch after each merge.

The development team will go through the branch in the next UVL meeting and will merge it into main after testing the effect of the changes on all the ecosystem tooling. You are welcome to join that meeting if you would like to take part.

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