8000 [3.12] gh-107659: Improve wording of the description of `ctypes.point… · python/cpython@590bc6a · GitHub
[go: up one dir, main page]

Skip to content

Commit 590bc6a

Browse files
miss-islingtontomasr8AA-Turnerkumaraditya303
authored
[3.12] gh-107659: Improve wording of the description of ctypes.pointer and ctypes.POINTER (GH-107769) (#108163)
gh-107659: Improve wording of the description of `ctypes.pointer` and `ctypes.POINTER` (GH-107769) (cherry picked from commit beffb30) Co-authored-by: Tomas R <tomas.roun8@gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
1 parent fbe1cff commit 590bc6a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Doc/library/ctypes.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2029,17 +2029,17 @@ Utility functions
20292029
specifying an address, or a ctypes instance.
20302030

20312031

2032-
.. function:: POINTER(type)
2032+
.. function:: POINTER(type, /)
20332033

2034-
This factory function creates and returns a new ctypes pointer type. Pointer
2035-
types are cached and reused internally, so calling this function repeatedly is
2036-
cheap. *type* must be a ctypes type.
2034+
Create and return a new ctypes pointer type. Pointer types are cached and
2035+
reused internally, so calling this function repeatedly is cheap.
2036+
*type* must be a ctypes type.
20372037

20382038

2039-
.. function:: pointer(obj)
2039+
.. function:: pointer(obj, /)
20402040

2041-
This function creates a new pointer instance, pointing to *obj*. The returned
2042-
object is of the type ``POINTER(type(obj))``.
2041+
Create a new pointer instance, pointing to *obj*.
2042+
The returned object is of the type ``POINTER(type(obj))``.
20432043

20442044
Note: If you just want to pass a pointer to an object to a foreign function
20452045
call, you should use ``byref(obj)`` which is much faster.

0 commit comments

Comments
 (0)
0