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

thomas.heller python-checkins at python.org
Thu Nov 2 21:22:29 CET 2006


Author: thomas.heller
Date: Thu Nov  2 21:22:29 2006
New Revision: 52592

Modified:
   python/trunk/Doc/lib/libctypes.tex
Log:
Fix a code example by adding a missing import.

Fixes #1557890.

Will backport to release25-maint.


Modified: python/trunk/Doc/lib/libctypes.tex
==============================================================================
--- python/trunk/Doc/lib/libctypes.tex	(original)
+++ python/trunk/Doc/lib/libctypes.tex	Thu Nov  2 21:22:29 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