-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Python/C API "PyUnicode_FromObject" is listed in the "Deprecated " section #103883
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
Labels
3.11
only security fixes
3.12
only security fixes
docs
Documentation in the Doc dir
topic-unicode
type-bug
An unexpected behavior, bug, or error
Comments
|
pep 623 doesn't affect to PyUnicode_FromObject. |
OK, this is 12 year old bug, since PEP 393. |
Even though this issue is disappeared in main branch, it is better to move this API to other "creating Unicode object" APIs. |
methane
added a commit
that referenced
this issue
Apr 27, 2023
This API is one of Unicode creator APIs.
methane
added a commit
to methane/cpython
that referenced
this issue
Apr 27, 2023
…103913) This API is one of Unicode creator APIs.. (cherry picked from commit ce2383e) Co-authored-by: Inada Naoki <[email protected]>
methane
added a commit
to methane/cpython
that referenced
this issue
Apr 27, 2023
This API is one of Unicode creator APIs. (cherry picked from commit ce2383e)
methane
added a commit
that referenced
this issue
Apr 27, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.11
only security fixes
3.12
only security fixes
docs
Documentation in the Doc dir
topic-unicode
type-bug
An unexpected behavior, bug, or error
In the documentation of Python 3.11 (or earlier), the Python/C API "PyUnicode_FromObject" is listed in the "Deprecated Py_UNICODE APIs" section, which is marked to be removed in version 3.12:
https://docs.python.org/3.11/c-api/unicode.html#deprecated-py-unicode-apis
However, the API seems not to get removed from neither of the actual implementation nor the documentation in Python 3.12. PEP 623 (https://peps.python.org/pep-0623/) doesn't even mention "PyUnicode_FromObject" as deprecated.
I suspect it is an error of the documentation, or did I miss something else?
Linked PRs
The text was updated successfully, but these errors were encountered: