Skip to content

Conversation

AA-Turner
Copy link
Member

@AA-Turner AA-Turner commented Aug 10, 2025

This is an attempt to avoid some of the problems we've seen with embedded tabs by changing the global variables within c-analyzer/cpython/_parser.py to use more structured data.

The output is identical, save for INCL_DIRS, where the fourth line (* ./Include/internal/mimalloc) currently uses spaces instead of tabs, showing that the current format is quite hard to properly keep up to date. The errant line was added in #109914.

What do you think @ericsnowcurrently?

See also:

Copy link
Member

@ericsnowcurrently ericsnowcurrently left a comment

Choose a reason for hiding this comment

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

LGTM (with your own suggested changes applied)

@AA-Turner AA-Turner enabled auto-merge (squash) September 17, 2025 15:14
@AA-Turner AA-Turner merged commit 2212ae5 into python:main Sep 17, 2025
43 checks passed
@AA-Turner AA-Turner deleted the c-analyzer-embedded-tabs branch September 17, 2025 15:25
@AA-Turner AA-Turner added the needs backport to 3.14 bugs and security fixes label Oct 7, 2025
@miss-islington-app
Copy link

Thanks @AA-Turner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 7, 2025
@bedevere-app
Copy link

bedevere-app bot commented Oct 7, 2025

GH-139718 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Oct 7, 2025
AA-Turner added a commit that referenced this pull request Oct 7, 2025
…er.py`` (GH-137622) (#139718)

GH-92266: Remove embedded tabs from ``c-analyzer/cpython/_parser.py`` (GH-137622)
(cherry picked from commit 2212ae5)

Co-authored-by: Adam Turner <[email protected]>
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.

2 participants