[Python-checkins] r52593 - python/branches/release25-maint/Doc/lib/libctypes.tex
thomas.heller
python-checkins at python.org
Thu Nov 2 21:24:26 CET 2006
Author: thomas.heller
Date: Thu Nov 2 21:24:26 2006
New Revision: 52593
Modified:
python/branches/release25-maint/Doc/lib/libctypes.tex
Log:
Fix code example by adding a missing import.
Fixes #1557890.
Backported from trunk.
Modified: python/branches/release25-maint/Doc/lib/libctypes.tex
==============================================================================
--- python/branches/release25-maint/Doc/lib/libctypes.tex (original)
+++ python/branches/release25-maint/Doc/lib/libctypes.tex Thu Nov 2 21:24:26 2006
@@ -1848,7 +1848,7 @@
Here is the wrapping with \code{ctypes}:
\begin{quote}
-\begin{verbatim}>>> from ctypes import POINTER, WINFUNCTYPE, windll
+\begin{verbatim}>>> from ctypes import POINTER, WINFUNCTYPE, windll, WinError
>>> from ctypes.wintypes import BOOL, HWND, RECT
>>> prototype = WINFUNCTYPE(BOOL, HWND, POINTER(RECT))
>>> paramflags = (1, "hwnd"), (2, "lprect")
More information about the Python-checkins
mailing list