8000 gh-87969: Amend docs and docstrings for ctypes.string_at and ctypes.wstring_at by shreyanavigyan · Pull Request #25384 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-87969: Amend docs and docstrings for ctypes.string_at and ctypes.wstring_at #25384

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

Merged
merged 7 commits into from
Apr 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file 8000
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address Eryc's remarks on the issue
  • Loading branch information
erlend-aasland committed Jun 22, 2023
commit eb21757855544aef960c92546da35ae66ec0279c
8 changes: 4 additions & 4 deletions Doc/library/ctypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2075,8 +2075,8 @@ Utility functions

.. function:: string_at(ptr, size=-1)

This function returns the C string starting at memory address *ptr* as a bytes
object. If size is specified, it is used as size, otherwise the string is assumed
Return the byte string at *void \*ptr*.
If *size* is specified, it is used as size, otherwise the string is assumed
to be zero-terminated.

.. audit-event:: ctypes.string_at ptr,size ctypes.string_at
Expand All @@ -2096,8 +2096,8 @@ Utility functions

.. function:: wstring_at(ptr, size=-1)

This function returns the wide character string starting at memory address
*ptr* as a string. If *size* is specified, it is used as the number of
Return the wide-character string at *void \*ptr*.
If *size* is specified, it is used as the number of
characters of the string, otherwise the string is assumed to be
zero-terminated.

Expand Down
0