-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-113437: Update documentation about PyUnicode_AsWideChar() function #113455
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whitespace and formatting:
Doc/c-api/unicode.rst
Outdated
@@ -854,7 +854,8 @@ wchar_t Support | |||
Copy the Unicode object contents into the :c:type:`wchar_t` buffer *wstr*. At most | |||
*size* :c:type:`wchar_t` characters are copied (excluding a possibly trailing | |||
null termination character). Return the number of :c:type:`wchar_t` characters | |||
copied or ``-1`` in case of an error. Note that the resulting :c:expr:`wchar_t*` | |||
copied or ``-1`` in case of an error. When :c:type:`wchar_t` buffer *wstr* is NULL, return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copied or ``-1`` in case of an error. When :c:type:`wchar_t` buffer *wstr* is NULL, return | |
copied or ``-1`` in case of an error. When :c:type:`wchar_t` buffer *wstr* is ``NULL``, return |
Doc/c-api/unicode.rst
Outdated
@@ -854,7 +854,8 @@ wchar_t Support | |||
Copy the Unicode object contents into the :c:type:`wchar_t` buffer *wstr*. At most | |||
*size* :c:type:`wchar_t` characters are copied (excluding a possibly trailing | |||
null termination character). Return the number of :c:type:`wchar_t` characters | |||
copied or ``-1`` in case of an error. Note that the resulting :c:expr:`wchar_t*` | |||
copied or ``-1`` in case of an error. When :c:type:`wchar_t` buffer *wstr* is NULL, return | |||
the length of the Unicode object plus one.Note that the resulting :c:expr:`wchar_t*` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the length of the Unicode object plus one.Note that the resulting :c:expr:`wchar_t*` | |
the length of the Unicode object plus one. Note that the resulting :c:expr:`wchar_t*` |
Thanks @qqwqqw689 for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Thanks @qqwqqw689 for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
…nction (pythonGH-113455) (cherry picked from commit 5719aa2) Co-authored-by: qqwqqw689 <114795525+qqwqqw689@users.noreply.github.com>
GH-115407 is a backport of this pull request to the 3.12 branch. |
…nction (pythonGH-113455) (cherry picked from commit 5719aa2) Co-authored-by: qqwqqw689 <114795525+qqwqqw689@users.noreply.github.com>
GH-115408 is a backport of this pull request to the 3.11 branch. |
Update documentation about PyUnicode_AsWideChar() function.
📚 Documentation preview 📚: https://cpython-previews--113455.org.readthedocs.build/