Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Don't include structmember.h in pythoncapi_compat.h#161

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 2 commits intopython:mainfromcolesbury:structmember.h
Nov 8, 2025

Conversation

@colesbury
Copy link
Contributor

Avoids conflicts due to names without "Py" prefixes.

Avoids conflicts due to names without "Py" prefixes.
@colesbury
Copy link
ContributorAuthor

This is the first of two issues that I ran into when pulling the latest pythoncapi_compat.h into PyTorch. We ran into name conflicts in downstream packages that had name conflicts because they pulled in both PyTorch headers and things like Thrift.

@vstinner
Copy link
Member

Avoids conflicts due to names without "Py" prefixes.

@encukou: Aha, it seems like it's time forPEP 743 – Add Py_OMIT_LEGACY_API to the Python C API :-D I hope that that PEP will beaccepted.

@vstinnervstinner merged commit11cb80f intopython:mainNov 8, 2025
36 checks passed
@vstinner
Copy link
Member

Merged, thanks. I like your change, it's a nice way to avoid<structmember.h>.

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@colesbury@vstinner

[8]ページ先頭

©2009-2025 Movatter.jp