10000 gh-107659: ctypes: Add docstrings for `ctypes.pointer` and `ctypes.POINTER` by tomasr8 · Pull Request #107660 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-107659: ctypes: Add docstrings for ctypes.pointer and ctypes.POINTER #107660

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 9 commits into from
Aug 8, 2023
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
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use imperative
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
  • Loading branch information
tomasr8 and erlend-aasland authored Aug 6, 2023
commit 944718c3b6afd70ca2622f7a4b7183ea8c4f6d9c
4 changes: 2 additions & 2 deletions Modules/_ctypes/callproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1905,7 +1905,7 @@ _ctypes.POINTER as create_pointer_type
type as cls: object
/

Creates and returns a new ctypes pointer type.
Create and return a new ctypes pointer type.

Pointer types are cached and reused internally, so calling this function
repeatedly is cheap. 'type' must be a ctypes type.
Expand Down Expand Up @@ -1969,7 +1969,7 @@ _ctypes.pointer as create_pointer_inst
obj as arg: object
/

Creates a new pointer instance, pointing to 'obj'.
Create a new pointer instance, pointing to 'obj'.

The returned object is of the type POINTER(type(obj)). Note that if you just
want to pass a pointer to an object to a foreign function call,
Expand Down
0