-
-
Notifications
You must be signed in to change notification settings - Fork 32k
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
Conversation
This PR is stale because it has been open for 30 days with no activity. |
Friendly Ping |
@iritkatriel would you mind having a look? This is fairly straightforward, currently the documentation is wrong and does not correctly represent the code. This should probably also get backported to older versions. |
Misc/NEWS.d/next/Library/2021-04-13-14-58-53.bpo-43803.U_EAv6.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Irit Katriel <[email protected]>
I've cleaned up the PR, and addressed Irit's remark about Eryc's remark. I consider it ok to land this, so I'm enabling auto-merge. |
Thanks @shreyanavigyan for the PR, and @erlend-aasland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
…pes' [w]string_at() (pythonGH-25384) The implementation uses 'ptr' for the name of the first parameter of ctypes.string_at() and ctypes.wstring_at(). Align docs and docstrings with the naming used in the implementation. (cherry picked from commit 81a926b) Co-authored-by: Shreyan Avigyan <[email protected]> Co-authored-by: Irit Katriel <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]>
GH-118046 is a backport of this pull request to the 3.12 branch. |
…pes' [w]string_at() (pythonGH-25384) The implementation uses 'ptr' for the name of the first parameter of ctypes.string_at() and ctypes.wstring_at(). Align docs and docstrings with the naming used in the implementation. (cherry picked from commit 81a926b) Co-authored-by: Shreyan Avigyan <[email protected]> Co-authored-by: Irit Katriel <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]>
GH-118047 is a backport of this pull request to the 3.11 branch. |
…ypes' [w]string_at() (GH-25384) (GH-118046) gh-87969: Align docs and docstrings with implementation for ctypes' [w]string_at() (GH-25384) The implementation uses 'ptr' for the name of the first parameter of ctypes.string_at() and ctypes.wstring_at(). Align docs and docstrings with the naming used in the implementation. (cherry picked from commit 81a926b) Co-authored-by: Shreyan Avigyan <[email protected]> Co-authored-by: Irit Katriel <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]>
The docstrings, docs and argument lists of the functions ctypes.string_at and ctypes.wstring_at used different names to refer to the first argument. Changing them to only use the name "ptr" to refer to the first argument.
https://bugs.python.org/issue43803