Skip to content

Commit ba63706

Browse files
miss-islingtontomasr8AA-Turnerkumaraditya303
authored
[3.11] gh-107659: Improve wording of the description of ctypes.pointer and ctypes.POINTER (GH-107769) (#108164)
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 <[email protected]> Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Kumar Aditya <[email protected]>
1 parent 4c042a3 commit ba63706

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
@@ -1988,17 +1988,17 @@ Utility functions
19881988
specifying an address, or a ctypes instance.
19891989

19901990

1991-
.. function:: POINTER(type)
1991+
.. function:: POINTER(type, /)
19921992

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

19971997

1998-
.. function:: pointer(obj)
1998+
.. function:: pointer(obj, /)
19991999

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

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

0 commit comments

Comments
 (0)