FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-132798: Schedule removal of `PyUnicode_AsDecoded/Encoded` functions for 3.15 by StanFromIreland · Pull Request #132799 · python/cpython · GitHub

Repository navigation

gh-132798: Schedule removal of PyUnicode_AsDecoded/Encoded functions for 3.15 - #132799

Merged
vstinner merged 5 commits into
python:mainfrom
StanFromIreland:removal-schedule
Apr 25, 2025
Merged

vstinner merged 5 commits into
python:mainfrom
StanFromIreland:removal-schedule

Conversation

StanFromIreland commented Apr 22, 2025 •
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

ZeroIntensity left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

These functions are in the limited API. I'm not sure what the procedure is for removing them, but they can't just disappear from the ABI. I think the practice is to remove them from headers when the limited API isn't used. We should probably make note of that somewhere.

Copy link
Copy Markdown
Member

These functions are in the limited API. I'm not sure what the procedure is for removing them

Mark them as abi_only in Misc/stable_abi.toml, keep their implementation, and use PyAPI_FUNC() in the C file.

See PyUnicode_GetSize() for an existing example.

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

Copy link
Copy Markdown
Member Author

Anything else left to do @vstinner ?

Co-authored-by: Victor Stinner <vstinner@python.org>

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

vstinner merged commit f6fb498 into python:main Apr 25, 2025
StanFromIreland deleted the removal-schedule branch April 25, 2025 13:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL