From: Neal Norwitz Date: Sat, 28 Oct 2006 22:12:26 +0000 (+0000) Subject: From SF 1557890, fix problem of using wrong type in example. X-Git-Tag: v2.6a1~2499 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4bb9b565011f2420649f851dc74e8fa3749046fa;p=python From SF 1557890, fix problem of using wrong type in example. Will backport. --- diff --git a/Doc/lib/libctypes.tex b/Doc/lib/libctypes.tex index b2e488a807..5f486d4a3e 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}