8000 Reformat paragraphs, add backquotes, and directives. · python/cpython@cbfdab1 · GitHub
[go: up one dir, main page]

Skip to content

Commit cbfdab1

Browse files
committed
Reformat paragraphs, add backquotes, and directives.
1 parent c7f1e3e commit cbfdab1

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

Doc/library/ctypes.rst

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1992,18 +1992,18 @@ Utility functions
19921992

19931993
.. function:: DllCanUnloadNow()
19941994

1995-
This function is a hook which allows implementing in-process
1996-
COM servers with ctypes. It is called from the DllCanUnloadNow function that
1997-
the _ctypes extension dll exports.
1995+
This function is a hook which allows implementing in-process COM servers with
1996+
``ctypes``. It is called from the ``DllCanUnloadNow`` function that the
1997+
``_ctypes`` extension dll exports.
19981998

19991999
.. availability:: Windows
20002000

20012001

20022002
.. function:: DllGetClassObject()
20032003

2004-
This function is a hook which allows implementing in-process
2005-
COM servers with ctypes. It is called from the DllGetClassObject function
2006-
that the ``_ctypes`` extension dll exports.
2004+
This function is a hook which allows implementing in-process COM servers with
2005+
``ctypes``. It is called from the ``DllGetClassObject`` function that the
2006+
``_ctypes`` extension dll exports.
20072007

20082008
.. availability:: Windows
20092009

@@ -2035,9 +2035,9 @@ Utility functions
20352035

20362036
.. function:: FormatError([code])
20372037

2038-
Returns a textual description of the error code *code*. If no
2039-
error code is specified, the last error code is used by calling the Windows
2040-
api function GetLastError.
2038+
Returns a textual description of the error code *code*. If no error code is
2039+
specified, the last error code is used by calling the Windows api function
2040+
:func:`GetLastError`.
20412041

20422042
.. availability:: Windows
20432043

@@ -2142,11 +2142,10 @@ Utility functions
21422142

21432143
.. function:: WinError(code=None, descr=None)
21442144

2145-
This function is probably the worst-named thing in ctypes. It
2146-
creates an instance of :exc:`OSError`. If *code* is not specified,
2147-
``GetLastError`` is called to determine the error code. If *descr* is not
2148-
specified, :func:`FormatError` is called to get a textual description of the
2149-
error.
2145+
This function is probably the worst-named thing in ``ctypes``. It creates an
2146+
instance of :exc:`OSError`. If *code* is not specified, :func:`GetLastError`
2147+
is called to determine the error code. If *descr* is not specified,
2148+
:func:`FormatError` is called to get a textual description of the error.
21502149

21512150
.. availability:: Windows
21522151

0 commit comments

Comments
 (0)
0