summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libctypes.tex
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2007-04-06 01:11:58 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2007-04-06 01:11:58 (GMT)
commit615b49b0976031e497809abf46b41322ed948bf4 (patch)
tree01643a1a6d012b2dfe7f99b2543c663e16d60b1c /Doc/lib/libctypes.tex
parent9405609c1725ea86c3cdc9a9ac665649d80d62c6 (diff)
downloadcpython-615b49b0976031e497809abf46b41322ed948bf4.zip
cpython-615b49b0976031e497809abf46b41322ed948bf4.tar.gz
cpython-615b49b0976031e497809abf46b41322ed948bf4.tar.bz2
Some grammar fixes
Diffstat (limited to 'Doc/lib/libctypes.tex')
-rwxr-xr-xDoc/lib/libctypes.tex10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/lib/libctypes.tex b/Doc/lib/libctypes.tex
index 08a715d..f19507a 100755
--- a/Doc/lib/libctypes.tex
+++ b/Doc/lib/libctypes.tex
@@ -7,21 +7,21 @@
\versionadded{2.5}
\code{ctypes} is a foreign function library for Python. It provides C
-compatible data types, and allows to call functions in dlls/shared
+compatible data types, and allows calling functions in dlls/shared
libraries. It can be used to wrap these libraries in pure Python.
\subsection{ctypes tutorial\label{ctypes-ctypes-tutorial}}
-Note: The code samples in this tutorial uses \code{doctest} to make sure
+Note: The code samples in this tutorial use \code{doctest} to make sure
that they actually work. Since some code samples behave differently
under Linux, Windows, or Mac OS X, they contain doctest directives in
comments.
-Note: Quite some code samples references the ctypes \class{c{\_}int} type.
+Note: Some code sample references the ctypes \class{c{\_}int} type.
This type is an alias to the \class{c{\_}long} type on 32-bit systems. So,
you should not be confused if \class{c{\_}long} is printed if you would
-expect \class{c{\_}int} - they are actually the same type.
+expect \class{c{\_}int} --- they are actually the same type.
\subsubsection{Loading dynamic link libraries\label{ctypes-loading-dynamic-link-libraries}}
@@ -38,7 +38,7 @@ return a Windows \class{HRESULT} error code. The error code is used to
automatically raise \class{WindowsError} Python exceptions when the
function call fails.
-Here are some examples for Windows, note that \code{msvcrt} is the MS
+Here are some examples for Windows. Note that \code{msvcrt} is the MS
standard C library containing most standard C functions, and uses the
cdecl calling convention:
\begin{verbatim}