Skip to content

gh-149231: tomllib: Limit the number of parts in a key#149233

Open
encukou wants to merge 2 commits intopython:mainfrom
encukou:tomllib-update
Open

gh-149231: tomllib: Limit the number of parts in a key#149233
encukou wants to merge 2 commits intopython:mainfrom
encukou:tomllib-update

Conversation

@encukou
Copy link
Copy Markdown
Member

@encukou encukou commented May 1, 2026

This roughly syncs up with latest tomli. I excluded the (growing number of) mypyc-specific parts.

Copy link
Copy Markdown
Member

@gpshead gpshead left a comment

Choose a reason for hiding this comment

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

cute re-use of recursionlimit. i could argue for just declaring a max nesting constant instead but realistically the important thing is having a limit at all. this works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants