Skip to content

Commit a6ac9e5

Browse files
iFix some references.
1 parent b8c621c commit a6ac9e5

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Doc/whatsnew/2.5.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,9 +1685,9 @@ provides functions for loading shared libraries and calling functions in them.
16851685
The :mod:`ctypes` package is much fancier.
16861686

16871687
To load a shared library or DLL, you must create an instance of the
1688-
:class:`CDLL` class and provide the name or path of the shared library or DLL.
1688+
:class:`~ctypes.CDLL` class and provide the name or path of the shared library or DLL.
16891689
Once that's done, you can call arbitrary functions by accessing them as
1690-
attributes of the :class:`CDLL` object. ::
1690+
attributes of the :class:`!CDLL` object. ::
16911691

16921692
import ctypes
16931693

Doc/whatsnew/2.6.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2851,29 +2851,29 @@ where various combinations of ``(start, stop, step)`` are supplied.
28512851
.. Revision 57769
28522852
28532853
All :mod:`ctypes` data types now support
2854-
:meth:`from_buffer` and :meth:`from_buffer_copy`
2854+
:meth:`~ctypes._CData.from_buffer` and :meth:`~ctypes._CData.from_buffer_copy`
28552855
methods that create a ctypes instance based on a
2856-
provided buffer object. :meth:`from_buffer_copy` copies
2856+
provided buffer object. :meth:`!from_buffer_copy` copies
28572857
the contents of the object,
2858-
while :meth:`from_buffer` will share the same memory area.
2858+
while :meth:`!from_buffer` will share the same memory area.
28592859

28602860
A new calling convention tells :mod:`ctypes` to clear the ``errno`` or
28612861
Win32 LastError variables at the outset of each wrapped call.
28622862
(Implemented by Thomas Heller; :issue:`1798`.)
28632863

28642864
You can now retrieve the Unix ``errno`` variable after a function
28652865
call. When creating a wrapped function, you can supply
2866-
``use_errno=True`` as a keyword argument to the :func:`DLL` function
2867-
and then call the module-level methods :meth:`set_errno` and
2868-
:meth:`get_errno` to set and retrieve the error value.
2866+
``use_errno=True`` as a keyword argument to the :func:`~ctypes.DLL` function
2867+
and then call the module-level methods :func:`~ctypes.set_errno` and
2868+
:func:`~ctypes.get_errno` to set and retrieve the error value.
28692869

28702870
The Win32 LastError variable is similarly supported by
2871-
the :func:`DLL`, :func:`OleDLL`, and :func:`WinDLL` functions.
2871+
the :func:`~ctypes.DLL`, :func:`~ctypes.OleDLL`, and :func:`~ctypes.WinDLL` functions.
28722872
You supply ``use_last_error=True`` as a keyword argument
2873-
and then call the module-level methods :meth:`set_last_error`
2874-
and :meth:`get_last_error`.
2873+
and then call the module-level methods :func:`~ctypes.set_last_error`
2874+
and :func:`~ctypes.get_last_error`.
28752875

2876-
The :func:`byref` function, used to retrieve a pointer to a ctypes
2876+
The :func:`~ctypes.byref` function, used to retrieve a pointer to a ctypes
28772877
instance, now has an optional *offset* argument that is a byte
28782878
count that will be added to the returned pointer.
28792879

0 commit comments

Comments
 (0)