mirror of
https://github.com/python/cpython.git
synced 2025-09-28 11:15:17 +00:00
gh-103025: fix two ctypes doc issues (#103026)
This commit is contained in:
parent
1fd603fad2
commit
0708437ad0
1 changed files with 3 additions and 3 deletions
|
@ -375,8 +375,8 @@ that they can be converted to the required C data type::
|
||||||
|
|
||||||
.. _ctypes-calling-variadic-functions:
|
.. _ctypes-calling-variadic-functions:
|
||||||
|
|
||||||
Calling varadic functions
|
Calling variadic functions
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
On a lot of platforms calling variadic functions through ctypes is exactly the same
|
On a lot of platforms calling variadic functions through ctypes is exactly the same
|
||||||
as calling functions with a fixed number of parameters. On some platforms, and in
|
as calling functions with a fixed number of parameters. On some platforms, and in
|
||||||
|
@ -508,7 +508,7 @@ a string pointer and a char, and returns a pointer to a string::
|
||||||
|
|
||||||
If you want to avoid the ``ord("x")`` calls above, you can set the
|
If you want to avoid the ``ord("x")`` calls above, you can set the
|
||||||
:attr:`argtypes` attribute, and the second argument will be converted from a
|
:attr:`argtypes` attribute, and the second argument will be converted from a
|
||||||
single character Python bytes object into a C char::
|
single character Python bytes object into a C char:
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue