8000 [3.12] gh-105268: Remove _PyGC_FINALIZED() macro (#105350) by vstinner · Pull Request #107348 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.12] gh-105268: Remove _PyGC_FINALIZED() macro (#105350) #107348

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

vstinner
Copy link
Member
@vstinner vstinner commented Jul 27, 2023

Remove the old private, undocumented and untested _PyGC_FINALIZED() macro which was kept for backward compatibility with Python 3.8 and older.

(cherry picked from commit 8ddf0dd)


📚 Documentation preview 📚: https://cpython-previews--107348.org.readthedocs.build/

@vstinner
Copy link
Member Author

This change fix PyTorch: #105268 (comment)

@vstinner vstinner enabled auto-merge (squash) July 27, 2023 14:42
Copy link
Member
@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

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

LGTM, but I am not sure that removing such private and undocumented macro is worth documenting. It received more fame in death than in life.

Remove the old private, undocumented and untested _PyGC_FINALIZED()
macro which was kept for backward compatibility with Python 3.8 and
older.

(cherry picked from commit 8ddf0dd)
@vstinner vstinner force-pushed the remove_pygc_finalized312 branch from a31167b to 149ad93 Compare August 14, 2023 19:33
@vstinner
Copy link
Member Author

@Yhg1s: Is this fix eligible in Python 3.12 final? It helps building PyTorch with Python 3.12 if I get it correctly.

@vstinner
Copy link
Member Author

I rebased my PR fix to fix a CI issue. Sadly, 3 weeks ago, the backport couldn't be merged because of a flaky test which failed on the Ubuntu job (unrelated to this PR).

@Yhg1s
Copy link
Member
Yhg1s commented Aug 14, 2023

Removing a macro helps building with PyTorch? That doesn't sound like a straight-forward case. But no, I see no reason this should go into 3.12 (not even two weeks ago, let alone at this stage).

AFF1

@vstinner
Copy link
Member Author

Ok, in that case, I prefer to not backport this change to 3.12. I close the issue.

@vstinner vstinner closed this Aug 15, 2023
auto-merge was automatically disabled August 15, 2023 00:12

Pull request was closed

@vstinner vstinner deleted the remove_pygc_finalized312 branch August 15, 2023 00:12
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.

4 participants
0