gh-80527: Deprecate PEP 623 Unicode functions#91801
Merged
vstinner merged 2 commits intopython:mainfrom Apr 22, 2022
vstinner:unicode_deprecate
Merged
gh-80527: Deprecate PEP 623 Unicode functions#91801vstinner merged 2 commits intopython:mainfrom vstinner:unicode_deprecate
vstinner merged 2 commits intopython:mainfrom
vstinner:unicode_deprecate
Conversation
Deprecate functions: * PyUnicode_AS_DATA() * PyUnicode_AS_UNICODE() * PyUnicode_GET_DATA_SIZE() * PyUnicode_GET_SIZE() Previously, these functions were macros and so it wasn't possible to decorate them with Py_DEPRECATED().
Member
Author
|
@methane @serhiy-storchaka: Would one of you review this change? Thanks. |
Member
Author
|
I converted these macros to functions in commit 636ad7b. |
Member
FWIW, use of these macros caused deprecation warning because wstr and wstr_length are deprecated. |
methane
approved these changes
Apr 22, 2022
Member
Author
Oh ok, nice! |
Member
Author
|
Well, I prefer to make it extra explicit that these functions will be removed soon (Python 3.12) ;-) I'm impatient, I would like to see wstr being removed as soon as possible, I hate the PyUnicode_READY() function! |
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deprecate functions:
Previously, these functions were macros and so it wasn't possible to
decorate them with Py_DEPRECATED().