Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Sep 18, 2025

Remove the version value.


📚 Documentation preview 📚: https://pep-previews--4595.org.readthedocs.build/

Remove the version value.
@vstinner vstinner requested a review from encukou as a code owner September 18, 2025 13:38
@vstinner
Copy link
Member Author

cc @encukou

@erlend-aasland
Copy link
Contributor

We should also reconsider the name of the macro. Py_COMPAT_API_VERSION is a bit misleading now that there is no specific version involved. Alyssa suggested Py_RECOMMENDED_API earlier. Maybe Py_HIDE_DEPRECATED_API?

@vstinner
Copy link
Member Author

We should also reconsider the name of the macro. Py_COMPAT_API_VERSION is a bit misleading now that there is no specific version involved. Alyssa suggested Py_RECOMMENDED_API earlier. Maybe Py_HIDE_DEPRECATED_API?

Oh right! Since the PEP creates legacy.h, maybe the macro can be called Py_OMIT_LEGACY_API?

@erlend-aasland
Copy link
Contributor

I like Py_OMIT_LEGACY_API!

@vstinner
Copy link
Member Author

Ok, let me rename the macro to Py_OMIT_LEGACY_API.

@vstinner
Copy link
Member Author

@encukou: Would you mind to review the PEP update? Does it look good to you?

@zooba
Copy link
Member

zooba commented Sep 25, 2025

Thanks for the changes, it looks good to me (but I'm not the coauthor, so I understand why you're waiting on Petr).

Copy link
Member

@AA-Turner AA-Turner left a comment

Choose a reason for hiding this comment

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

It might be prudent to add a brief mention of the now-removed Py_COMPAT_API_VERSION in Rejected Ideas?

Otherwise, looks good editorially.

A

@encukou
Copy link
Member

encukou commented Sep 30, 2025

I'd add the implication of not having a versioned macro to Backwards Compatibility; otherwise the change looks fine to me. Thanks!

Co-Authored-by: Petr Viktorin <encukou@gmail.com>
@vstinner vstinner merged commit 2556771 into python:main Sep 30, 2025
5 checks passed
@vstinner vstinner deleted the pep743_no_version branch September 30, 2025 12:20
@vstinner
Copy link
Member Author

Merged, thank you for reviews.

It might be prudent to add a brief mention of the now-removed Py_COMPAT_API_VERSION in Rejected Ideas?

I don't think that it's worth it.

zklaus pushed a commit to zklaus/peps that referenced this pull request Nov 3, 2025
* Remove the version value.
* Rename the macro to Py_OMIT_LEGACY_API

Co-authored-by: Petr Viktorin <encukou@gmail.com>
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.

5 participants