[Python-checkins] r52514 - python/trunk/Doc/lib/libctypes.tex

neal.norwitz python-checkins at python.org
Sun Oct 29 00:12:27 CEST 2006


Author: neal.norwitz
Date: Sun Oct 29 00:12:26 2006
New Revision: 52514
Modified:
 python/trunk/Doc/lib/libctypes.tex
Log:
>From SF 1557890, fix problem of using wrong type in example.

Will backport.
Modified: python/trunk/Doc/lib/libctypes.tex
==============================================================================
--- python/trunk/Doc/lib/libctypes.tex	(original)
+++ python/trunk/Doc/lib/libctypes.tex	Sun Oct 29 00:12:26 2006
@@ -1821,7 +1821,7 @@
 \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}


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /