Skip to content

Commit fbef819

Browse files
committed
Add blurb and whatsnew entry.
1 parent 428907a commit fbef819

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

Doc/library/ctypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ see the reference manual for details.
697697
Specifying function pointers using type annotations
698698
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
699699

700-
.. function:: wrap_dll_function(dll)
700+
.. decorator:: wrap_dll_function(dll)
701701
:module: ctypes.util
702702

703703
A :term:`decorator` that generates :attr:`~_CFuncPtr.argtypes` and

Doc/whatsnew/3.16.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ ctypes
237237
from an annotation-based syntax, similar to how the :mod:`dataclasses` module
238238
is used.
239239
(Contributed by Peter Bierma in :gh:`104533`.)
240+
* Add :func:`ctypes.util.wrap_dll_function` for generating function pointers
241+
through a function signature.
242+
(Contributed by Peter Bierma in :gh:`153903`.)
240243

241244

242245
encodings
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Add :func:`ctypes.util.wrap_dll_function` for creating
2+
:class:`~ctypes._CFuncPtr` objects from a function signature.

0 commit comments

Comments
 (0)