summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-10-28 22:12:26 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-10-28 22:12:26 (GMT)
commit4bb9b565011f2420649f851dc74e8fa3749046fa (patch)
tree8dc882903d47a17bb339be499c37b2f158a39097 /Doc
parent07fdcfd6c96f972836574d65fbc039891e664755 (diff)
downloadcpython-4bb9b565011f2420649f851dc74e8fa3749046fa.zip
cpython-4bb9b565011f2420649f851dc74e8fa3749046fa.tar.gz
cpython-4bb9b565011f2420649f851dc74e8fa3749046fa.tar.bz2
From SF 1557890, fix problem of using wrong type in example.
Will backport.
Diffstat (limited to 'Doc')
-rwxr-xr-xDoc/lib/libctypes.tex2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/lib/libctypes.tex b/Doc/lib/libctypes.tex
index b2e488a..5f486d4 100755
--- a/Doc/lib/libctypes.tex
+++ b/Doc/lib/libctypes.tex
@@ -1821,7 +1821,7 @@ Here is the wrapping with \code{ctypes}:
\begin{quote}
\begin{verbatim}>>> from ctypes import c_int, WINFUNCTYPE, windll
>>> from ctypes.wintypes import HWND, LPCSTR, UINT
->>> prototype = WINFUNCTYPE(c_int, HWND, LPCSTR, LPCSTR, c_uint)
+>>> prototype = WINFUNCTYPE(c_int, HWND, LPCSTR, LPCSTR, UINT)
>>> paramflags = (1, "hwnd", 0), (1, "text", "Hi"), (1, "caption", None), (1, "flags", 0)
>>> MessageBox = prototype(("MessageBoxA", windll.user32), paramflags)
>>>\end{verbatim}